Skip to content

Nix package and environment #65

Nix package and environment

Nix package and environment #65

Workflow file for this run

---
name: Nix package and environment
on:
schedule:
- cron: "0 1 * * 1"
push:
tags:
- "*"
pull_request:
paths:
- ".github/workflows/test-nix.yml"
- "flake.lock"
- "flake.nix"
- "package.nix"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
permissions: {}
jobs:
test-nix:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Install nix
uses: DeterminateSystems/determinate-nix-action@b3e3f405539b332fcb96794525f35fb10c230baa # v3.13.2
- name: Setup cachix
uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
with:
name: osgeo-grass
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build package
run: nix build -L --accept-flake-config .#grass
- name: Test development environment
run: nix develop --accept-flake-config --command echo OK