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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
permissions:
contents: read

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"

jobs:
test:
strategy:
Expand All @@ -18,12 +22,28 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Rust build cache (kache)
uses: kunobi-ninja/kache-action@ad7317540dcdd71c904f7a60a87b620a0c0e67ed # v2.0.0
with:
version: "2.0.0"
cache-executables: "false"
github-cache: "true"
manifest-key: test-${{ matrix.os }}
save-cache: ${{ github.ref == 'refs/heads/main' }}
- run: cargo test --release --locked

windows-installer:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
- name: Rust build cache (kache)
uses: kunobi-ninja/kache-action@ad7317540dcdd71c904f7a60a87b620a0c0e67ed # v2.0.0
with:
version: "2.0.0"
cache-executables: "false"
github-cache: "true"
manifest-key: windows-installer
save-cache: ${{ github.ref == 'refs/heads/main' }}
- name: Parse PowerShell scripts
shell: powershell
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
CARGO_INCREMENTAL: "0"
steps:
- uses: actions/checkout@v7
- name: Match tag and package versions
shell: bash
run: |
cargo_version=$(sed -nE 's/^version = "([^"]+)"/\1/p' Cargo.toml | head -1)
test "$GITHUB_REF_NAME" = "v$cargo_version"
- name: Rust build cache (kache)
uses: kunobi-ninja/kache-action@ad7317540dcdd71c904f7a60a87b620a0c0e67ed # v2.0.0
with:
version: "2.0.0"
cache-executables: "false"
github-cache: "true"
manifest-key: release-verify-${{ matrix.os }}
save-cache: ${{ github.ref == 'refs/heads/main' }}
- run: cargo test --release --locked

create-release:
Expand Down
Loading