diff options
| -rw-r--r-- | .github/workflows/ci.yaml | 28 | ||||
| -rw-r--r-- | flake.lock | 12 |
2 files changed, 22 insertions, 18 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6138cbe..42f8e92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: ci +name: CI on: push: @@ -24,27 +24,31 @@ jobs: steps: - uses: actions/checkout@v4 - - name: setup qemu + - name: Setup QEMU if: matrix.arch == 'aarch64' - run: | - sudo apt update -y - sudo apt install -y qemu-user-static + uses: docker/setup-qemu-action@v3 + with: + platforms: arm64 - - name: install nix + - name: Install Nix if: matrix.arch != 'aarch64' uses: DeterminateSystems/nix-installer-action@v7 - - name: install nix (with aarch64) + - 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 cache + - name: Setup cache uses: DeterminateSystems/magic-nix-cache-action@v2 - - name: run build + - name: Run build if: matrix.arch != 'aarch64' + run: nix build -L + + - name: Run ARM build + if: matrix.arch == 'aarch64' run: nix build -Lv .#packages.${{ matrix.arch }}-linux.default check: @@ -53,11 +57,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install nix + - name: Install Nix uses: DeterminateSystems/nix-installer-action@v7 - - name: setup cache + - name: Setup cache uses: DeterminateSystems/magic-nix-cache-action@v2 - - name: run check + - name: Run check run: nix flake check --show-trace @@ -57,11 +57,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1699099776, - "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", + "lastModified": 1700794826, + "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", + "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", "type": "github" }, "original": { @@ -103,11 +103,11 @@ ] }, "locked": { - "lastModified": 1699271226, - "narHash": "sha256-8Jt1KW3xTjolD6c6OjJm9USx/jmL+VVmbooADCkdDfU=", + "lastModified": 1700922917, + "narHash": "sha256-ej2fch/T584b5K9sk1UhmZF7W6wEfDHuoUYpFN8dtvM=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "ea758da1a6dcde6dc36db348ed690d09b9864128", + "rev": "e5ee5c5f3844550c01d2131096c7271cec5e9b78", "type": "github" }, "original": { |
