diff options
| author | seth <[email protected]> | 2023-11-13 20:45:35 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-14 02:55:54 +0000 |
| commit | 3e5263a327a3261d3d9957d723e9dc0e1d96e094 (patch) | |
| tree | 662921851c149f1dd61252584081dc754059732d /.github/workflows/ci.yaml | |
| parent | e1387ae4821a95efabb356581f2234ef4aab42cb (diff) | |
ci!: gha -> garnix
compiling arm stuff with qemu is way too slow lol
Diffstat (limited to '.github/workflows/ci.yaml')
| -rw-r--r-- | .github/workflows/ci.yaml | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 144e259..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,115 +0,0 @@ -name: CI - -on: - pull_request: - workflow_dispatch: - workflow_call: - secrets: - CACHIX_AUTH_TOKEN: - required: false - -jobs: - eval: - runs-on: ubuntu-latest - - outputs: - matrix: ${{ steps.generate.outputs.matrix }} - - steps: - - uses: actions/checkout@v4 - - - name: install nix - uses: nixbuild/nix-quick-install-action@v26 - - - name: setup cachix - uses: cachix/cachix-action@v12 - with: - name: getchoo - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: generate matrix - id: generate - run: | - set -Eeu - echo "matrix=$(nix eval --show-trace --json .#githubWorkflow.matrix)" >> "$GITHUB_OUTPUT" - - build: - needs: eval - - strategy: - fail-fast: false - matrix: ${{ fromJSON(needs.eval.outputs.matrix) }} - - runs-on: ${{ matrix.os }} - - name: build (${{matrix.attr}}) - - steps: - - uses: actions/checkout@v4 - - - name: setup qemu - if: matrix.arch == 'aarch64' - run: | - sudo apt update -y - sudo apt install -y qemu-user-static - - - name: install nix - if: matrix.arch != 'aarch64' - uses: DeterminateSystems/nix-installer-action@v7 - - - name: install nix (with aarch64) - if: matrix.arch == 'aarch64' - uses: DeterminateSystems/nix-installer-action@v7 - with: - extra-conf: "extra-platforms = aarch64-linux arm-linux" - - - name: setup cachix - uses: cachix/cachix-action@v12 - with: - name: getchoo - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: build ${{ matrix.attr }} - run: nix build -L --fallback .#${{ matrix.attr }} - - check: - strategy: - fail-fast: false - matrix: - os: [macos-latest, ubuntu-latest] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - - name: install nix - uses: DeterminateSystems/nix-installer-action@v7 - - - name: setup cachix - uses: cachix/cachix-action@v12 - with: - name: getchoo - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: run check - run: nix flake check --show-trace - - # https://github.com/orgs/community/discussions/26822#discussioncomment-3305794 - gate: - needs: [build, check] - runs-on: ubuntu-latest - - if: always() - - steps: - - name: exit with result - run: | - buildResult="${{ needs.build.result }}" - checkResult="${{ needs.check.result }}" - - results=("$buildResult" "$checkResult") - - for result in "${results[@]}"; do [ "$result" != "success" ] && exit 1; done - - exit 0 |
