Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update

- uses: taiki-e/install-action@59679e24ffb0dbbbc136684eda7fcd21fe9eddea # v2.63.0
- uses: taiki-e/install-action@6a1bd70eaac3c8bdf093356838d7ee09fda951cf # v2.85.5
with:
tool: cargo-llvm-cov

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
persist-credentials: false

- uses: cachix/install-nix-action@1ca7d21a94afc7c957383a2d217460d980de4934 # v31.10.1
- uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0

- uses: ./
with:
Expand Down

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename this file to .github/workflows/warpbuild.yml.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: buildjet
name: warpbuild

on:
push:
Expand All @@ -9,13 +9,13 @@ on:
permissions: {}

jobs:
buildjet:
warpbuild:
strategy:
fail-fast: false
matrix:
os: ${{ github.actor == 'dependabot[bot]' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') }}

name: Test buildjet provider on ${{ matrix.os }}
name: Test warpbuild provider on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: ./
with:
workspaces: tests
cache-provider: buildjet
cache-provider: warpbuild

- run: |
cargo check
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
target/
.build

# Editors
.idea/
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sensible defaults.
## Example usage

```yaml
- uses: actions/checkout@v5
- uses: actions/checkout@v6

# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
Expand All @@ -34,7 +34,7 @@ sensible defaults.
# default: "true"
add-job-id-key: ""

# Weather the a hash of the rust environment should be included in the cache key.
# Whether the a hash of the rust environment should be included in the cache key.
# This includes a hash of all Cargo.toml/Cargo.lock files, rust-toolchain files,
# and .cargo/config.toml files (if present), as well as the specified 'env-vars'.
# default: "true"
Expand Down Expand Up @@ -94,7 +94,7 @@ sensible defaults.
lookup-only: ""

# Specifies what to use as the backend providing cache
# Can be set to "github", "buildjet", or "warpbuild"
# Can be set to "github", or "warpbuild"
# default: "github"
cache-provider: ""

Expand Down Expand Up @@ -144,7 +144,7 @@ This action currently caches the following files/directories:
This cache is automatically keyed by:

- the github [`job_id`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id)
(if `add-job-id-key` is `"true"`),
(if `add-job-id-key` is `"true"`),
- the rustc release / host / hash (for all installed toolchains when
available),
- the following values, if `add-rust-environment-hash-key` is `"true"`:
Expand Down Expand Up @@ -212,5 +212,5 @@ to see those details as well as further details related to caching operations.
- The cache cleaning process currently removes all the files from `~/.cargo/bin`
that were present before the action ran (for example `rustc`), by default.
This can be an issue on long-running self-hosted runners, where such state
is expected to be preserved across runs. You can work around this by setting
is expected to be preserved across runs. You can work around this by setting
`cache-bin: "false"`.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ inputs:
required: false
default: "true"
cache-provider:
description: "Determines which provider to use for caching. Options are github, buildjet, or warpbuild. Defaults to github."
description: "Determines which provider to use for caching. Options are github, or warpbuild. Defaults to github."
required: false
default: "github"
cache-bin:
Expand All @@ -68,8 +68,8 @@ outputs:
description: "A boolean value that indicates an exact match was found."
runs:
using: "node24"
main: "dist/restore/index.js"
post: "dist/save/index.js"
main: "dist/restore.js"
post: "dist/save.js"
post-if: "success() || env.CACHE_ON_FAILURE == 'true'"
branding:
icon: "archive"
Expand Down
Loading
Loading