Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweattypalms authored Jun 24, 2024
1 parent ca994a3 commit 485d826
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,32 @@ jobs:

steps:
- uses: actions/checkout@v4

# To allow unstable features

- name: Install Rust nightly
run: rustup override set nightly


- name: Cache cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build
env:
CARGO_MANIFEST_DIR: ${{ github.workspace }}
run: cargo build --verbose

- name: Run tests
env:
CARGO_MANIFEST_DIR: ${{ github.workspace }}
run: cargo test --verbose

0 comments on commit 485d826

Please sign in to comment.