Skip to content

Commit

Permalink
add cargo caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam McKee committed Dec 21, 2024
1 parent ce6b4c6 commit 9d8039b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- run: cargo install cargo-release
- run: cargo release --no-confirm -x patch
- id: version
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh_release_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
mkdir -p $HOME/.cargo
mv ./.github/workflows/linkers.toml $HOME/.cargo/config.toml
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- run: rustup target add $TARGET
- name: build
run: cargo build --release --target $TARGET
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh_release_upload_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
ref: ${{ inputs.tag_name }}
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- run: rustup target add ${{ matrix.target }}
- name: build
shell: powershell
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- name: cargo build
run: cargo build --all-features --release --workspace

Expand All @@ -41,6 +42,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- name: cargo build
run: |
cargo run --example build_fn
Expand All @@ -52,6 +54,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all -v
- run: git diff --exit-code
Expand All @@ -61,6 +64,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- run: cargo clippy --all -- -D warnings
if: github.ref == 'refs/heads/main'
- run: cargo clippy --all
Expand All @@ -78,6 +82,7 @@ jobs:
with:
node-version: 20
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- name: cargo test
run: cargo test --workspace

Expand All @@ -94,6 +99,7 @@ jobs:
with:
node-version: ${{ matrix.node_version }}
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- name: cargo test
run: cargo test -p l3_fn_build testing::test_node_fixtures

Expand All @@ -106,6 +112,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup install stable
- uses: swatinem/rust-cache@v2
- run: cargo install --path l3_cli
- run: l3 build --all
working-directory: fn_build/fixtures/node/js/http_routes/get_fn

0 comments on commit 9d8039b

Please sign in to comment.