-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 843 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: "CI"
on:
pull_request:
push:
create:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: docker/setup-buildx-action@v2
- run: nix build -L
- run: nix build -L '.#packages.x86_64-linux.github-action-scan-static'
- run: nix flake check
- name: Extract tag name
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
id: extract_tag
- run: nix build -L '.#packages.x86_64-linux.github-action-scan-image'