Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/setup-integration-test-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ runs:
target: wasm32-wasip1
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
shell: bash
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Cache Viceroy binary
if: ${{ inputs.install-viceroy == 'true' }}
id: cache-viceroy
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
components: "clippy, rustfmt"
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Run cargo fmt
uses: actions-rust-lang/rustfmt@v1

Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
target: wasm32-wasip1
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Cache Viceroy binary
id: cache-viceroy
uses: actions/cache@v4
Expand Down Expand Up @@ -69,6 +77,14 @@ jobs:
target: wasm32-wasip1
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Build Axum adapter
run: cargo build -p trusted-server-adapter-axum

Expand Down Expand Up @@ -103,6 +119,14 @@ jobs:
target: wasm32-unknown-unknown
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Check Cloudflare adapter (native host)
run: cargo check -p trusted-server-adapter-cloudflare

Expand Down Expand Up @@ -130,6 +154,14 @@ jobs:
target: wasm32-wasip1
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Check Spin adapter (native host)
run: cargo check -p trusted-server-adapter-spin

Expand Down Expand Up @@ -169,6 +201,14 @@ jobs:
components: clippy, rustfmt
cache-shared-key: cargo-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

- name: Format check (parity test crate)
run: cargo fmt --manifest-path crates/trusted-server-integration-tests/Cargo.toml -- --check

Expand Down Expand Up @@ -201,6 +241,14 @@ jobs:
components: "clippy, rustfmt"
cache-shared-key: cargo-cli-${{ runner.os }}

- name: Set up sccache
uses: mozilla-actions/sccache-action@v0.0.10

- name: Configure sccache for Rust
run: |
echo "SCCACHE_GHA_ENABLED=on" >> "$GITHUB_ENV"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"

# No separate `cargo fmt` here: `trusted-server-cli` is a workspace member,
# so the main `cargo fmt --all` job already formats it. Clippy still needs a
# native run — the workspace clippy jobs are wasm/adapter-scoped and never
Expand Down
Loading