From adf05c37ceabc9c916e2ea91ec99fcd3e17461b1 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Wed, 22 Oct 2025 00:04:38 +0200 Subject: [PATCH] ci: switch to tangled spindles --- .github/workflows/ci.yml | 58 --------------------------------------- .tangled/workflows/ci.yml | 25 +++++++++++++++++ garnix.yaml | 5 ---- 3 files changed, 25 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .tangled/workflows/ci.yml delete mode 100644 garnix.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index f14920a..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: CI - -on: - pull_request: - workflow_call: - secrets: - CACHIX_AUTH_TOKEN: - description: "Auth token for cachix" - workflow_dispatch: - -env: - JUST_ARGS: --inputs-from . nixpkgs#just --command - -jobs: - build: - name: Build outputs - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v9 - - - name: Setup Cachix - uses: cachix/cachix-action@v14 - with: - name: pluiedev - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: Run build - run: | - nix shell ${{ env.JUST_ARGS }} just ci - - check: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - - name: Check flake (${{ matrix.os }}) - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v9 - - - name: Setup Cachix - uses: cachix/cachix-action@v14 - with: - name: getchoo - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: Run check - run: | - nix shell ${{ env.JUST_ARGS }} just check diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml new file mode 100644 index 0000000..6f5175a --- /dev/null +++ b/.tangled/workflows/ci.yml @@ -0,0 +1,25 @@ +when: + - event: ["push", "pull_request", "manual"] + branch: ["main"] + +engine: "nixery" + +# using the default values +clone: + skip: false + depth: 1 + submodules: false + +dependencies: + nixpkgs: + - nix + - cachix + +environment: + CACHE_NAME: "pluiedev" + +steps: + - name: "Evaluate pappardelle" + command: "nix eval .#nixosConfigurations.pappardelle.config.system.build.toplevel" + - name: "Build pappardelle" + command: "cachix watch-exec $CACHE_NAME -- nix eval .#nixosConfigurations.pappardelle.config.system.build.toplevel" diff --git a/garnix.yaml b/garnix.yaml deleted file mode 100644 index 01dc36c..0000000 --- a/garnix.yaml +++ /dev/null @@ -1,5 +0,0 @@ -builds: - exclude: [] - include: - - "nixosConfigurations.*" - - "packages.*" -- 2.51.2