Skip to content

Free Disk space on ubuntu #3

Free Disk space on ubuntu

Free Disk space on ubuntu #3

name: "Check the Nix Flake using `nix flake check`"
env:
ALLOWED_URIS: "https://github.com https://api.github.com"
TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
SUBSTITUTERS: "https://cache.nixos.org/ https://cache.iog.io"
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
pull_request:
push:
branches:
- main
jobs:
nix-flake-check:
name: "Run nix flake check on ${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-15-intel, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4

Check failure on line 26 in .github/workflows/nix-flake-check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/nix-flake-check.yaml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Run only on Ubuntu
if: matrix.os == 'ubuntu-22.04'
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
- name: 🛠️ Install Nix
uses: cachix/install-nix-action@v21
with:
nix_path: nixpkgs=channel:nixos-unstable
install_url: https://releases.nixos.org/nix/nix-2.18.8/install
extra_nix_config: |
allowed-uris = ${{ env.ALLOWED_URIS }}
trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }}
substituters = ${{ env.SUBSTITUTERS }}
experimental-features = nix-command flakes
accept-flake-config = true
- name: nix-flake-check
run: |
nix show-config
nix --show-trace -L flake check