ci(lua): rename before uploading

This commit is contained in:
əlemi 2024-09-10 02:39:55 +02:00
parent 53bfaf1d9a
commit 1c90cc36bf
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -18,19 +18,22 @@ jobs:
platform:
- runner: ubuntu-latest
target: linux-x64-gnu
filename: libcodemp.so
ext: so
pre: lib
- runner: windows-latest
target: win32-x64
filename: codemp.dll
ext: dll
pre:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua
- 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
with:
name: codemp-lua-${{ matrix.platform.target }}
path: target/release/${{ matrix.platform.filename }}
path: dist/lua/codemp-lua-${{ matrix.platform.target }}.${{ matrix.platform.ext }}
# macos requires some extra cargo config to make it work, but
# these settings make test fail so better limit them to this run