diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index d3e115f..2f8c666 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -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