2024-09-09 17:08:24 +02:00
|
|
|
name: lua
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- ci
|
|
|
|
- stable
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- runner: ubuntu-latest
|
|
|
|
target: x64
|
2024-09-09 17:36:53 +02:00
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: x86
|
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: aarch64
|
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: armv7
|
2024-09-09 17:08:24 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 17:17:13 +02:00
|
|
|
- run: rustup update stable && rustup default stable
|
2024-09-09 17:30:23 +02:00
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-09 17:08:24 +02:00
|
|
|
- run: cargo build --release --features=lua
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: codemp_native-lua-linux-${{ matrix.platform.target }}-gnu.so # will this rename????
|
|
|
|
path: target/release/libcodemp.so
|
|
|
|
|
|
|
|
musllinux:
|
|
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
2024-09-09 17:36:53 +02:00
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: x86_64
|
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: x86
|
2024-09-09 17:08:24 +02:00
|
|
|
- runner: ubuntu-latest
|
|
|
|
target: aarch64
|
2024-09-09 17:36:53 +02:00
|
|
|
#- runner: ubuntu-latest
|
|
|
|
# target: armv7
|
2024-09-09 17:08:24 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 17:17:13 +02:00
|
|
|
- run: rustup update stable && rustup default stable
|
2024-09-09 17:30:23 +02:00
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-09 17:08:24 +02:00
|
|
|
- run: cargo build --release --features=lua
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: codemp_native-lua-linux-${{ matrix.platform.target }}-musl.so # will this rename????
|
|
|
|
path: target/release/libcodemp.so
|
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- runner: windows-latest
|
|
|
|
target: x64
|
2024-09-09 17:36:53 +02:00
|
|
|
#- runner: windows-latest
|
|
|
|
# target: x86
|
2024-09-09 17:08:24 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 17:17:13 +02:00
|
|
|
- run: rustup update stable && rustup default stable
|
2024-09-09 17:30:23 +02:00
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-09 17:08:24 +02:00
|
|
|
- run: cargo build --release --features=lua
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: codemp_native-lua-windows-${{ matrix.platform.target }}.dll # will this rename????
|
|
|
|
path: target/release/codemp.dll
|
|
|
|
|
|
|
|
macos:
|
|
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
2024-09-09 17:36:53 +02:00
|
|
|
#- runner: macos-12
|
|
|
|
# target: x64
|
2024-09-09 17:08:24 +02:00
|
|
|
- runner: macos-14
|
|
|
|
target: aarch64
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 17:17:13 +02:00
|
|
|
- run: rustup update stable && rustup default stable
|
2024-09-09 17:30:23 +02:00
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-09 17:08:24 +02:00
|
|
|
- run: cargo build --release --features=lua
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: codemp_native-lua-macos-${{ matrix.platform.target }}.dylib # will this rename????
|
|
|
|
path: target/release/codemp.dylib
|