2024-09-09 17:08:24 +02:00
|
|
|
name: lua
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- ci
|
|
|
|
- stable
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2024-09-09 19:47:42 +02:00
|
|
|
build:
|
2024-09-09 17:08:24 +02:00
|
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
|
|
strategy:
|
2024-09-09 19:52:32 +02:00
|
|
|
fail-fast: false
|
2024-09-09 17:08:24 +02:00
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- runner: ubuntu-latest
|
2024-09-09 19:47:42 +02:00
|
|
|
target: linux-x64-gnu
|
|
|
|
filename: libcodemp.so
|
2024-09-09 17:08:24 +02:00
|
|
|
- runner: windows-latest
|
2024-09-09 19:47:42 +02:00
|
|
|
target: win32-x64
|
|
|
|
filename: codemp.dll
|
2024-09-09 17:08:24 +02:00
|
|
|
- runner: macos-14
|
2024-09-09 19:47:42 +02:00
|
|
|
target: darwin-arm64
|
|
|
|
filename: codemp.dylib
|
|
|
|
#- runner: macos-12
|
|
|
|
# target: darwin-x64
|
|
|
|
# filename: codemp.dylib
|
2024-09-09 17:08:24 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 19:47:42 +02:00
|
|
|
- uses: dtolnay/rust-toolchain@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:
|
2024-09-09 19:47:42 +02:00
|
|
|
name: codemp-lua-${{ matrix.platform.target }}
|
|
|
|
path: target/release/libcodemp.so
|