Skip to content

Commit

Permalink
chore(ci): watch file changes instead of all push
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnwriter committed Oct 30, 2024
1 parent 825e157 commit 8b90de2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 58 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/build-app.yml
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
40 changes: 0 additions & 40 deletions .github/workflows/test-kanha.yml

This file was deleted.

0 comments on commit 8b90de2

Please sign in to comment.