diff options
author | jhspetersson <jhspetersson@gmail.com> | 2024-01-04 16:12:53 +0100 |
---|---|---|
committer | jhspetersson <jhspetersson@gmail.com> | 2024-01-04 16:12:53 +0100 |
commit | fe91d97a0b8081810bd5d0c2ad52ff56ccd5b37b (patch) | |
tree | c6f2dc9f8bc2deca469ca36e3b1979d31e1307a7 | |
parent | cdb3ce6f2a58a8dbb19f09f17beb9ba6cf5bf3e1 (diff) |
update Github Actions build workflow
-rw-r--r-- | .github/workflows/rust.yml | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4865576..c1596fb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,20 +3,46 @@ name: build on: push: branches: [ master ] + paths: + - 'src/**' + - 'Cargo.toml' + - 'Cargo.lock' pull_request: branches: [ master ] + paths: + - 'src/**' + - 'Cargo.toml' + - 'Cargo.lock' + workflow_dispatch: env: CARGO_TERM_COLOR: always jobs: - build: + build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose + + windows-build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + macos-build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose
\ No newline at end of file |