Update Nix Flake lockfile #52
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Nix: | |
strategy: | |
fail-fast: false | |
matrix: | |
experimental: [false] | |
os: [ ubuntu-latest, macos-12 ] | |
pkg: | |
- dmd | |
- ldc | |
- dub | |
include: | |
- { experimental: true, pkg: ldc, os: macos-12 } | |
exclude: | |
- { experimental: false, pkg: ldc, os: macos-12 } | |
name: ${{ matrix.pkg }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
# NIX_PATH is explicitly set to a wrong value to prevent accidental | |
# usage. `nixpkgs` should be accessed only through the locked flake | |
# reference. | |
nix_path: nixpkgs=null | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | |
accept-flake-config = true | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: dlang-community | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build ${{ matrix.job_name }} | |
run: nix build -L --json --no-link '.#${{ matrix.pkg }}' |