-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (40 loc) · 893 Bytes
/
nix.yml
File metadata and controls
45 lines (40 loc) · 893 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Nix
on:
push:
branches:
- master
paths:
- "flake.nix"
- "flake.lock"
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/nix.yml"
pull_request:
branches:
- master
paths:
- "flake.nix"
- "flake.lock"
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/nix.yml"
jobs:
build:
permissions:
id-token: write
contents: read
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout flake
uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@v8
- name: Setup FlakeHub Cache
uses: DeterminateSystems/flakehub-cache-action@main
- name: Build screenly-cli
run: nix build .#screenly-cli