-
-
Notifications
You must be signed in to change notification settings - Fork 413
40 lines (38 loc) · 967 Bytes
/
build-nix.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
29
30
31
32
33
34
35
36
37
38
39
40
name: 🏗️ Build QOwnNotes for Nix
on:
push:
branches-ignore:
- release
tags-ignore:
- '*'
paths:
- 'src/**'
- 'default.nix'
- 'build-systems/nix/**'
- '.github/workflows/build-nix.yml'
pull_request:
paths:
- 'src/**'
- 'default.nix'
- 'build-systems/nix/**'
- '.github/workflows/build-nix.yml'
workflow_dispatch:
jobs:
build:
name: 🏗️ Build ${{ matrix.just-recipe }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
just-recipe: ['nix-build', 'nix-build-cmake-qt5']
steps:
- name: ⚙️ Install Nix
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: 🧰 Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: 🚧 Build nix package
run: nix-shell --run "just ${{ matrix.just-recipe }}"