1
1
mirror of https://github.com/tweag/nickel.git synced 2024-11-10 10:46:49 +03:00
nickel/.github/workflows/specs.yml
2021-02-09 15:52:43 +01:00

45 lines
950 B
YAML

name: "Test specs"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checking out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Installing Nix
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Add `unstable` Nix channel
run: |
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update
- name: Installing nixFlakes
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
- uses: cachix/cachix-action@v8
with:
name: nickel
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run Makam Spec
run: |
nix build ./#checks.x86_64-linux.specs