From d081c7b8f28977cd3f56c734c9e888da9a06ff7d Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Mon, 20 Nov 2023 10:36:41 +0100 Subject: [PATCH] Move Nix builds to separate file Signed-off-by: Wiktor Kwapisiewicz --- .github/workflows/ci.yml | 15 --------------- .github/workflows/nix.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 829ce42..8aad4c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,21 +23,6 @@ jobs: run: | docker buildx build --platform linux/amd64 --file ci/e2e.dockerfile . - nix-build: - name: Run nix-build - runs-on: ${{ matrix.os }} - continue-on-error: true - strategy: - matrix: - include: - - os: ubuntu-latest - - os: macos-latest - steps: - - uses: actions/checkout@v3 - - uses: nixbuild/nix-quick-install-action@v26 - - run: nix flake check - - run: nix build .#pysequoia - build: name: Build and check strategy: diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..ded1c83 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,23 @@ +name: Nix + +on: [push, pull_request] + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + check-and-build: + name: Run nix flake check and nix build + runs-on: ${{ matrix.os }} + continue-on-error: true + strategy: + matrix: + include: + - os: ubuntu-latest + - os: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: nixbuild/nix-quick-install-action@v26 + - run: nix flake check + - run: nix build .#pysequoia