Skip to content

Commit

Permalink
Create separate runner for examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Jul 25, 2024
1 parent 2ff93f4 commit 9fee2a5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,29 @@ jobs:
run: cargo nextest run --archive-file tests.tar.zst --verbose
env:
PILCOM: ${{ github.workspace }}/pilcom/

run_examples:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: ⚡ Restore rust cache
id: cache
uses: actions/cache/restore@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Cargo.lock
key: ${{ runner.os }}-cargo-pr-tests-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-pr-tests-
- name: Install Rust toolchain 1.77 (with clippy and rustfmt)
run: rustup toolchain install 1.77-x86_64-unknown-linux-gnu && rustup component add clippy --toolchain 1.77-x86_64-unknown-linux-gnu && rustup component add rustfmt --toolchain 1.77-x86_64-unknown-linux-gnu
- name: Run examples
run: cargo run --example hello_world

Expand Down

0 comments on commit 9fee2a5

Please sign in to comment.