diff --git a/.github/workflows/build-nix.yml b/.github/workflows/build-nix.yml new file mode 100644 index 0000000000..2b5b105854 --- /dev/null +++ b/.github/workflows/build-nix.yml @@ -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 }}