Skip to content

Commit

Permalink
#3076 nix: add GitHub workflow to test building nix package
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Aug 8, 2024
1 parent 91a1463 commit 5562da3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🏗️ Build QOwnNotes for Nix

on:
push:
branches-ignore:
- release
tags-ignore:
- '*'
paths:
- 'src/**'
- 'default.nix'
- 'build-systems/nix/**'
- '.github/workflows/build-test.yml'
pull_request:
paths:
- 'src/**'
- 'default.nix'
- 'build-systems/nix/**'
- '.github/workflows/build-test.yml'
workflow_dispatch:

jobs:
build:
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@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: 🧰 Checkout code
uses: actions/checkout@v3
- name: 🚧 Build nix package
run: make ${{ matrix.make-step }}

0 comments on commit 5562da3

Please sign in to comment.