-
-
Notifications
You must be signed in to change notification settings - Fork 422
40 lines (38 loc) · 943 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.make-step }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
make-step: ['nix-build', 'nix-build-cmake-qt5']
steps:
- name: ⚙️ Install Nix
uses: cachix/install-nix-action@V27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: 🧰 Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: 🚧 Build nix package
run: make ${{ matrix.make-step }}