Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
path: |
~/.cargo
target
key: v0-linux-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}
- run: mise run check
14 changes: 14 additions & 0 deletions .github/workflows/release-linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,22 @@ jobs:
with:
fetch-depth: 0

- name: Prepare cache key
id: cache-key
run: |
# Hash Cargo.lock excluding the data-breaker package version line for stable caching
HASH=$(grep -n 'name = "data-breaker"' Cargo.lock | head -1 | cut -d: -f1 | xargs -I{} expr {} + 1 | xargs -I{} sed '{}d' Cargo.lock | sha256sum | cut -d' ' -f1)
echo "cargo-lock-hash=$HASH" >> "$GITHUB_OUTPUT"

- uses: jdx/mise-action@v2

- uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}

- name: Add target
run: rustup target add aarch64-unknown-linux-gnu

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,22 @@ jobs:
with:
fetch-depth: 0

- name: Prepare cache key
id: cache-key
run: |
# Hash Cargo.lock excluding the data-breaker package version line for stable caching
HASH=$(grep -n 'name = "data-breaker"' Cargo.lock | head -1 | cut -d: -f1 | xargs -I{} expr {} + 1 | xargs -I{} sed '{}d' Cargo.lock | sha256sum | cut -d' ' -f1)
echo "cargo-lock-hash=$HASH" >> "$GITHUB_OUTPUT"

- uses: jdx/mise-action@v2

- uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}

- name: Add target
run: rustup target add x86_64-unknown-linux-gnu

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-macos-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,22 @@ jobs:
with:
fetch-depth: 0

- name: Prepare cache key
id: cache-key
run: |
# Hash Cargo.lock excluding the data-breaker package version line for stable caching
HASH=$(grep -n 'name = "data-breaker"' Cargo.lock | head -1 | cut -d: -f1 | xargs -I{} expr {} + 1 | xargs -I{} sed '{}d' Cargo.lock | sha256sum | cut -d' ' -f1)
echo "cargo-lock-hash=$HASH" >> "$GITHUB_OUTPUT"

- uses: jdx/mise-action@v2

- uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}

- name: Add target
run: rustup target add aarch64-apple-darwin

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-macos-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,22 @@ jobs:
with:
fetch-depth: 0

- name: Prepare cache key
id: cache-key
run: |
# Hash Cargo.lock excluding the data-breaker package version line for stable caching
HASH=$(grep -n 'name = "data-breaker"' Cargo.lock | head -1 | cut -d: -f1 | xargs -I{} expr {} + 1 | xargs -I{} sed '{}d' Cargo.lock | sha256sum | cut -d' ' -f1)
echo "cargo-lock-hash=$HASH" >> "$GITHUB_OUTPUT"

- uses: jdx/mise-action@v2

- uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}

- name: Add target
run: rustup target add x86_64-apple-darwin

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/release-windows-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,23 @@ jobs:
with:
fetch-depth: 0

- name: Prepare cache key
id: cache-key
shell: bash
run: |
# Hash Cargo.lock excluding the data-breaker package version line for stable caching
HASH=$(grep -n 'name = "data-breaker"' Cargo.lock | head -1 | cut -d: -f1 | xargs -I{} expr {} + 1 | xargs -I{} sed '{}d' Cargo.lock | sha256sum | cut -d' ' -f1)
echo "cargo-lock-hash=$HASH" >> "$GITHUB_OUTPUT"

- uses: jdx/mise-action@v2

- uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: v0-${{ runner.os }}-${{ runner.arch }}-${{ steps.cache-key.outputs.cargo-lock-hash }}

- name: Build
run: cargo build --release --target x86_64-pc-windows-msvc

Expand Down