Skip to content

Commit

Permalink
Update setup-protoc and remove colliding caches (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo authored Aug 14, 2024
1 parent 3aeca76 commit 4bb26c8
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install Rust Target
run: rustup target add ${{ matrix.platform.target }}
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install gcc-aarch64-linux-gnu
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check formatting and clippy rules
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build all targets
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check that OpenAPI specs are up-to-date
Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Redis
Expand Down Expand Up @@ -376,7 +376,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Redis
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Redis
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Redis
Expand Down Expand Up @@ -494,7 +494,7 @@ jobs:
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- id: get_version
Expand Down Expand Up @@ -537,24 +537,16 @@ jobs:
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: release
cache-all-crates: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- id: get_version
uses: battila7/get-version-action@v2
- name: Set version for all packages
env:
VERSION: ${{ steps.get_version.outputs.version-without-v }}
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: cargo make set-version
- run: cargo build -p golem-cli --release --target ${{ matrix.rust-target }}
if: ${{ ! matrix.cross }}
Expand Down

0 comments on commit 4bb26c8

Please sign in to comment.