From aae3d1485d4c8c28e5f03fdbfb4f084e192fb858 Mon Sep 17 00:00:00 2001 From: Luis Eduardo Bueso de Barrio Date: Fri, 6 Feb 2026 23:56:14 +0100 Subject: [PATCH] CI --- .gitea/workflows/ci.yml | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..3e9484c --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,65 @@ +name: CI + +on: + push: + branches: + - main + - master + pull_request: + +jobs: + check: + name: Nix Flake Check + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: https://github.com/cachix/install-nix-action@v26 + with: + extra_nix_config: | + experimental-features = nix-command flakes + accept-flake-config = true + + - name: Setup Cachix + uses: https://github.com/cachix/cachix-action@v14 + with: + name: nix-community + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + skipPush: true + + - name: Run flake checks + run: nix flake check --print-build-logs + + build: + name: Build Packages + runs-on: ubuntu-latest + strategy: + matrix: + package: + - default + - example-a + - example-b + - pyzotero + - pyzotero-cli + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: https://github.com/cachix/install-nix-action@v26 + with: + extra_nix_config: | + experimental-features = nix-command flakes + accept-flake-config = true + + - name: Setup Cachix + uses: https://github.com/cachix/cachix-action@v14 + with: + name: nix-community + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + skipPush: true + + - name: Build ${{ matrix.package }} + run: nix build .#${{ matrix.package }} --print-build-logs