matrix-media-expanded/.github/workflows/ci.yaml
2023-04-09 09:51:56 -04:00

32 lines
899 B
YAML

name: "CI"
on:
# Run only when pushing to master branch, and making PRs
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nixbuild/nix-quick-install-action@v22
with:
nix_conf: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix dependencies
run: |
nix develop -j 4 -c echo
- name: Build 🔨
id: build
run: |
nix build -j auto -L
- name: Flake checks 🧪
run: |
# Sandbox must be disabed for:
# https://github.com/srid/haskell-flake/issues/21
nix \
--option sandbox false \
flake check -L \
--override-input systems github:nix-systems/x86_64-linux