ci: pass GITHUB_TOKEN to setup_protoc

hopefully will resolve a lot of these rate limit errors
This commit is contained in:
əlemi 2024-09-10 14:49:48 +02:00
parent 317990e7e4
commit c0799df2b4
Signed by: alemi
GPG key ID: A4895B84D311642C
6 changed files with 11 additions and 0 deletions

View file

@ -28,6 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.10" # Quotes required to prevent YAML converting to number

View file

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

View file

@ -28,6 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }}
- 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 }}
- uses: actions/upload-artifact@v4
@ -53,6 +54,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo rustc --release --features=luajit -- -C link-arg=-undefined -C link-arg=dynamic_lookup
- uses: actions/upload-artifact@v4
with:

View file

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

View file

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

View file

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