Build psyonic-ability-hand-java natives #2
Workflow file for this run
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: Build psyonic-ability-hand-java natives | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux-x86_64: | |
| runs-on: [ubuntu-22.04] | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install git curl build-essential -y | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Compile native library (x86_64) | |
| run: | | |
| bash cppbuild.bash | |
| - name: Commit generated java and native libraries | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: '*.java *.so' # Only commit generated java from Linux | |
| author_name: ihmc-rosie | |
| author_email: rosie@ihmc.us | |
| message: 'Rebuild natives for Linux (x86_64)' | |
| push: true | |
| build-windows: | |
| runs-on: [windows-2022] | |
| needs: [build-linux-x86_64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Pull repo | |
| run: | | |
| git reset --hard | |
| git pull | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| vsversion: 2022 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Check Java/Gradle versions | |
| run: | | |
| java --version | |
| gradle --version | |
| - name: Compile native library | |
| run: | | |
| bash.exe cppbuild.bash | |
| - name: Commit native libraries | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: '*.dll' # Only commit generated java from Linux | |
| author_name: ihmc-rosie | |
| author_email: rosie@ihmc.us | |
| message: 'Rebuild natives for Windows' | |
| push: true |