Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
Update workflow,and add rust-src
  • Loading branch information
zachary0809 authored Mar 18, 2024
1 parent 75bda63 commit 3d636cc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Rust

on:
push:
branches: [ "main" ]
branches:
- '**'
pull_request:
branches: [ "main" ]
branches:
- '**'

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -44,6 +46,10 @@ jobs:
with:
cache-on-failure: true
cache-all-crates: true

- name: Add rust-src
run: |
rustup component add rust-src
- name: Build
run: cargo check --release
Expand Down

0 comments on commit 3d636cc

Please sign in to comment.