Add home-manager CI for both ubuntu and macos (#220) #59
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: CI - Nix | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '.github/workflows/ci-nix.yml' | |
- '*.nix' | |
- 'Makefile.toml' | |
pull_request: | |
paths: | |
- '.github/workflows/ci-nix.yml' | |
- '*.nix' | |
- 'Makefile.toml' | |
schedule: | |
# Every 10:42 JST | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
- cron: '42 1 * * *' | |
workflow_dispatch: | |
jobs: | |
tasks: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- run: nix-shell --run 'echo This step should be done before any other "nix-shell" steps because of measuring Nix build time' | |
- run: nix-shell --run 'makers ci' |