use java 25 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Native library builder | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| artifact: linux-amd64 | |
| lib: libtweetnacl.so | |
| - os: ubuntu-24.04-arm | |
| artifact: linux-aarch64 | |
| lib: libtweetnacl.so | |
| - os: macos-latest | |
| artifact: darwin-aarch64 | |
| lib: libtweetnacl.dylib | |
| - os: macos-13 | |
| artifact: darwin-amd64 | |
| lib: libtweetnacl.dylib | |
| - os: windows-latest | |
| artifact: windows-amd64 | |
| lib: tweetnacl.dll | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Set up MSYS2 (Windows) | |
| if: runner.os == 'Windows' | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| install: mingw-w64-x86_64-gcc make | |
| - name: Build native library (Unix) | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: make jni | |
| - name: Build native library (Windows) | |
| if: runner.os == 'Windows' | |
| shell: msys2 {0} | |
| run: make jni | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: "./${{ matrix.lib }}" |