Skip to content

Native compilation

Native compilation #17

Workflow file for this run

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