Skip to content

Expose specialArgs.modulesPath and specialArgs.extraModulesPath to flake module consumers #642

Expose specialArgs.modulesPath and specialArgs.extraModulesPath to flake module consumers

Expose specialArgs.modulesPath and specialArgs.extraModulesPath to flake module consumers #642

Workflow file for this run

name: Nix
on:
push:
branches:
- main
- staging
- trying
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: numtide
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
export PRJ_ROOT=$PWD
$(./shell.nix)/entrypoint --pure bash -c "echo OK"
- run: nix-shell --run "echo OK"
- run: nix-build
flakes:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: numtide
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check
- name: Run devshell entry sanity checks
run: |
nix develop -c echo OK
for tmpl in ./templates/*; do
if ! [ -d "$tmpl" ]; then
continue
fi
nix develop --override-input devshell . "$tmpl" -c echo OK
done
- name: Run nix flake archive
run: nix flake archive
docs:
strategy:
matrix:
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: numtide
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix-build -A docs
cp -r "$(readlink ./result)" book
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: book
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}