Canary: do I work against latest nixpkgs? #8
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
name: "Canary: do I work against latest nixpkgs?" | |
on: | |
schedule: | |
# every sunday morning | |
- cron: "0 0 * * 0" | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # no shallow | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: traditional nix-build succeeds | |
run: nix-build | |
- name: update the lockfile | |
run: nix flake update | |
- name: flake builds + tests | |
run: nix flake check --print-build-logs --keep-going |