-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): watch file changes instead of all push
- Loading branch information
Showing
2 changed files
with
17 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
name: Nix Build | ||
name: Run on Changes | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'src/*' | ||
- 'flake.*' | ||
- 'Cargo.*' | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
paths: | ||
- 'src/*' | ||
- 'flake.*' | ||
- 'Cargo.*' | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Install Nix package manager | ||
uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Setup Nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: nix develop --command nix build | ||
- name: Nix build | ||
run: | | ||
nix build |
This file was deleted.
Oops, something went wrong.