mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-22 21:04:53 +01:00
Merge pull request #17 from hexedtech/feat/lua-rock
This commit is contained in:
commit
a5410cf1b2
2 changed files with 24 additions and 4 deletions
26
.github/workflows/lua.yml
vendored
26
.github/workflows/lua.yml
vendored
|
@ -35,19 +35,39 @@ jobs:
|
|||
buildcmd: cargo rustc --release --features=luajit -- -C link-arg=-undefined -C link-arg=dynamic_lookup
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # necessary to get last tag
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: ${{ matrix.platform.buildcmd }}
|
||||
- run: mv target/release/${{matrix.platform.pre}}codemp.${{matrix.platform.ext}} dist/lua/codemp-lua-${{matrix.platform.arch}}-${{matrix.platform.target}}.${{matrix.platform.ext}}
|
||||
- id: previoustag
|
||||
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
||||
with:
|
||||
fallback: v0.0.0
|
||||
- run: mv target/release/${{matrix.platform.pre}}codemp.${{matrix.platform.ext}} dist/lua/codemp-lua-${{steps.previoustag.outputs.tag}}-${{matrix.platform.arch}}-${{matrix.platform.target}}.${{matrix.platform.ext}}
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: codemp-lua-${{ matrix.platform.target }}
|
||||
path: dist/lua/codemp-lua-${{matrix.platform.arch}}-${{matrix.platform.target}}.${{matrix.platform.ext}}
|
||||
path: dist/lua/codemp-lua-*
|
||||
|
||||
# TODO this just copies files on our server, maybe consider other ways to distribute? maybe do it properly with versions?
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: arduino/setup-protoc@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: leafo/gh-actions-lua@v9
|
||||
- uses: leafo/gh-actions-luarocks@v4
|
||||
- run: luarocks install --local dkjson # needed to run upload?? ooook luarocks...
|
||||
- run: luarocks upload codemp-*.rockspec --api-key ${{ secrets.LUAROCKS_TOKEN }}
|
||||
working-directory: dist/lua
|
||||
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
|
|
2
dist/lua/codemp-0.7.0-1.rockspec
vendored
2
dist/lua/codemp-0.7.0-1.rockspec
vendored
|
@ -3,7 +3,7 @@ version = "0.7.0-1"
|
|||
|
||||
source = {
|
||||
url = "git+https://github.com/hexedtech/codemp",
|
||||
branch = "dev",
|
||||
tag = "v0.7.0",
|
||||
}
|
||||
|
||||
dependencies = {
|
||||
|
|
Loading…
Reference in a new issue