Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
markdown-link:
name: check (links)
if: ${{ github.repository_owner == 'instrumentisto' }}
runs-on: ubuntu-latest
runs-on: ${{ vars.GH_RUNNER_LABEL_CI || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # 1.0.17
with:
config-file: .markdown-link-check.json
folder-path: ./
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/students_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
changed_crates:
if: ${{ github.repository_owner != 'instrumentisto' }}
name: Detect changes
runs-on: ubuntu-latest
runs-on: ${{ vars.GH_RUNNER_LABEL_CI || 'ubuntu-latest' }}
outputs:
has_changes: ${{ steps.crates.outputs.has_changes }}
crates: ${{ steps.crates.outputs.crates }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
# Fetch all history so that git diff can compare against any commit
fetch-depth: 0
Expand Down Expand Up @@ -63,28 +63,26 @@ jobs:
test:
needs: changed_crates
if: ${{ needs.changed_crates.outputs.has_changes == 'true' }}
runs-on: ubuntu-latest
runs-on: ${{ vars.GH_RUNNER_LABEL_CI || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
crate: ${{ fromJson(needs.changed_crates.outputs.crates) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Install Rust
id: rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@fa04a1451ff1842e2626ccb99004d0195b455a88 # master (2026-06-30)
with:
toolchain: stable
override: true
profile: minimal

# Cache dependencies by the crate name and the Rust version
# It does not save/fetch cache from different crates, because `cargo test -p` does not build them
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2.9.1
with:
shared-key: ${{ matrix.crate }}-${{ steps.rust.outputs.rustc_hash }}
shared-key: ${{ matrix.crate }}-${{ steps.rust.outputs.cachekey }}

- name: Run tests on ${{ matrix.crate }}
run: cargo test -p ${{ matrix.crate }}
4 changes: 2 additions & 2 deletions .github/workflows/students_tool_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
jobs:
cache_tools:
if: ${{ github.repository_owner != 'instrumentisto' }}
runs-on: ubuntu-latest
runs-on: ${{ vars.GH_RUNNER_LABEL_CI || 'ubuntu-latest' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Cache dependencies
uses: ./.github/actions/install-student-ci-deps