do not run macos every time

This commit is contained in:
Daniel Winkler 2025-08-26 12:07:33 +10:00
commit 782fd3037f
3 changed files with 24 additions and 2 deletions

View file

@ -1,5 +1,6 @@
name: "Test template" name: "Test template"
on: on:
workflow_dispatch: # allows manual triggering
pull_request: pull_request:
push: push:
jobs: jobs:
@ -7,11 +8,12 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31 - uses: cachix/install-nix-action@v31
with: with:
github_access_token: ${{ secrets.GITHUB_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build ./templates/n - run: nix build ./templates/n
- run: nix flake check ./templates/n - run: nix flake check ./templates/n

19
.github/workflows/check_macos.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: "Test template MacOS"
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 3 * * 0'
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build ./templates/n
- run: nix flake check ./templates/n

View file

@ -3,7 +3,7 @@ name: update-flake-lock
on: on:
workflow_dispatch: # allows manual triggering workflow_dispatch: # allows manual triggering
schedule: schedule:
- cron: '0 0 0 * *' - cron: '0 3 * * 0'
jobs: jobs:
lockfile: lockfile:
@ -13,6 +13,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Determinate Nix - name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@v3 uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update n flake.lock - name: Update n flake.lock
uses: DeterminateSystems/update-flake-lock@v25 uses: DeterminateSystems/update-flake-lock@v25
with: with: