ci: fix syntax, needs a with

i always do this wrong..
This commit is contained in:
əlemi 2024-09-10 14:51:58 +02:00
parent c0799df2b4
commit 8970cb3d92
Signed by: alemi
GPG key ID: A4895B84D311642C
6 changed files with 22 additions and 11 deletions

View file

@ -28,7 +28,8 @@ 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
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v4 - uses: gradle/actions/setup-gradle@v4
with: with:
gradle-version: "8.10" # Quotes required to prevent YAML converting to number gradle-version: "8.10" # Quotes required to prevent YAML converting to number

View file

@ -24,7 +24,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
@ -47,7 +48,8 @@ jobs:
# some github resources and build another time here, discarding the binary # some github resources and build another time here, discarding the binary
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:

View file

@ -28,7 +28,8 @@ 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
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo build --release --features=luajit - 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
@ -54,7 +55,8 @@ 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
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
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
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:

View file

@ -30,7 +30,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
@ -65,7 +66,8 @@ jobs:
# steps: # steps:
# - uses: actions/checkout@v4 # - uses: actions/checkout@v4
# - uses: arduino/setup-protoc@v3 # - uses: arduino/setup-protoc@v3
# repo-token: ${{ secrets.GITHUB_TOKEN }} # with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/setup-python@v5 # - uses: actions/setup-python@v5
# with: # with:
# python-version: 3.x # python-version: 3.x
@ -95,7 +97,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
@ -126,7 +129,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x

View file

@ -16,7 +16,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- run: cargo publish --locked --token ${{ secrets.CRATES_IO_TOKEN }} - run: cargo publish --locked --token ${{ secrets.CRATES_IO_TOKEN }}

View file

@ -31,7 +31,8 @@ jobs:
# TODO should re-enable future toolchains so we get warnings on breaking changes # TODO should re-enable future toolchains so we get warnings on breaking changes
steps: steps:
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }} with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with: