Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

CI - Nix

CI - Nix #28

Workflow file for this run

name: CI - Nix
on:
push:
branches: [main]
paths:
- '.github/workflows/ci-nix.yml'
- '*.nix'
- 'flake.*'
- 'Taskfile.yml'
pull_request:
paths:
- '.github/workflows/ci-nix.yml'
- '*.nix'
- 'flake.*'
- 'Taskfile.yml'
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
- name: Print nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- run: nix flake check
- run: nix develop --command echo 'This step should be done before any other "nix develop" steps because of measuring Nix build time'
- run: nix develop --command task versions
- run: nix develop --command task
- run: nix run . -- --version