Skip to content

Commit

Permalink
only run rust workflow if rust changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmichels committed Apr 29, 2024
1 parent e631719 commit 056fd88
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
paths:
- src/**
- Cargo.lock
- Cargo.toml
pull_request:
branches: [ "main" ]
branches: ["main"]
paths:
- src/**
- Cargo.lock
- Cargo.toml

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose

0 comments on commit 056fd88

Please sign in to comment.