Native compilation #16
This file contains 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 compilation | |
on: | |
workflow_dispatch: | |
jobs: | |
compile-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install Mesa" | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install mesa-common-dev:amd64 mesa-common-dev:i386 | |
- name: "Install GCC multilib" | |
run: sudo apt-get install gcc-multilib g++-multilib | |
- name: "Compile" | |
run: | | |
chmod +x ./gradlew | |
./gradlew compile | |
- name: "Upload libraries" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Linux | |
path: ./modules/native/build/lib | |
compile-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Compile" | |
run: | | |
./gradlew compile | |
- name: "Upload libraries" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Windows | |
path: ./modules/native/lib | |
compile-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Compile" | |
run: | | |
chmod +x ./gradlew | |
./gradlew compile | |
- name: "Upload libraries" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: MacOS | |
path: ./modules/native/build/lib |