ci(lua): fix macos upload artifact path

This commit is contained in:
əlemi 2024-09-10 15:42:20 +02:00
parent 8970cb3d92
commit 84868c336c
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -47,10 +47,12 @@ jobs:
platform: platform:
- runner: macos-latest - runner: macos-latest
target: darwin-arm64 target: darwin-arm64
filename: codemp.dylib ext: dylib
pre: lib
#- runner: macos-12 #- runner: macos-12
# target: darwin-x64 # target: darwin-x64
# filename: codemp.dylib # ext: dylib
# pre: lib
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
@ -58,10 +60,11 @@ jobs:
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo rustc --release --features=luajit -- -C link-arg=-undefined -C link-arg=dynamic_lookup - run: cargo rustc --release --features=luajit -- -C link-arg=-undefined -C link-arg=dynamic_lookup
- 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:
name: codemp-lua-${{ matrix.platform.target }} name: codemp-lua-${{ matrix.platform.target }}
path: target/release/${{ matrix.platform.filename }} path: dist/lua/codemp-lua-${{ matrix.platform.target }}.${{ matrix.platform.ext }}
# TODO this just copies files on our server, maybe publish on luarocks? maybe do it properly with versions # TODO this just copies files on our server, maybe publish on luarocks? maybe do it properly with versions
publish: publish: