ci(lua): build with luajit

This commit is contained in:
əlemi 2024-09-10 14:38:52 +02:00
parent de9c424e2f
commit c2df2341c4
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua - run: cargo build --release --features=luajit
- run: mv target/release/${{ matrix.platform.pre}}codemp.${{ matrix.platform.ext }} dist/lua/codemp-lua-${{ matrix.platform.target }}.${{ matrix.platform.ext }} - run: mv target/release/${{ matrix.platform.pre}}codemp.${{ matrix.platform.ext }} dist/lua/codemp-lua-${{ matrix.platform.target }}.${{ matrix.platform.ext }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
- run: cargo rustc --release --features=lua -- -C link-arg=-undefined -C link-arg=dynamic_lookup - run: cargo rustc --release --features=luajit -- -C link-arg=-undefined -C link-arg=dynamic_lookup
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: codemp-lua-${{ matrix.platform.target }} name: codemp-lua-${{ matrix.platform.target }}