Skip to content

Merge pull request #1815 from Omikhleia/docs-inputter-outputter #1169

Merge pull request #1815 from Omikhleia/docs-inputter-outputter

Merge pull request #1815 from Omikhleia/docs-inputter-outputter #1169

Workflow file for this run

name: Run Flake
on: [ push, pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nix-flake:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Cache Nix dependencies
uses: DeterminateSystems/magic-nix-cache-action@v2
# Upstream package sometimes has flags set that disable flake checking
- name: Setup test env
run: |
echo 'NIXPKGS_ALLOW_BROKEN=1' >> $GITHUB_ENV
- name: Check flake
run: nix flake check --impure
- name: Build flake
run: nix build
- name: Test run in shell
run: nix shell -c sile --version
- name: Test run as flake
run: nix run . -- --version