diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index af54e0f..952cf6b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,11 +15,15 @@ on: jobs: build: - - runs-on: windows-latest permissions: contents: read + strategy: + matrix: + os: [ macos-latest, windows-latest, ubuntu-latest ] + + runs-on: ${{ matrix.os }} + steps: - uses: actions/checkout@v4 @@ -30,11 +34,11 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build Native Executable - run: ./gradlew.bat nativeCompile + run: gradlew nativeCompile - - name: Upload EncryptMyPack.exe + - name: Upload Files uses: actions/upload-artifact@v2 if: success() with: - name: EncryptMyPack.exe - path: build/native/nativeCompile/EncryptMyPack.exe \ No newline at end of file + name: EncryptMyPack-${{ matrix.os }} + path: build/native/nativeCompile/EncryptMyPack* \ No newline at end of file