From dbb486ff4e7c4c7a1736e43dcf52a32b1212efe7 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Mar 2024 14:14:01 +0100 Subject: [PATCH] try aarch parser build --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7aff68b..44db4c4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -124,27 +124,47 @@ jobs: build-parser: runs-on: ubuntu-latest + strategy: + matrix: + machine: + - platform: x86_64-linux + - platform: aarch64-linux steps: - uses: actions/checkout@v4 + - if: matrix.machine.platform != 'x86_64-linux' + uses: docker/setup-qemu-action@v3 - uses: cachix/install-nix-action@v26 + with: + extra_nix_config: | + extra-platforms = aarch64-linux - uses: icewind1991/attic-action@v1 with: name: ci instance: https://cache.icewind.me authToken: '${{ secrets.ATTIC_TOKEN }}' - - run: nix build .#demostf-parser + - run: nix build --option system ${{ matrix.machine.platform }} .#demostf-parser build: runs-on: ubuntu-latest + strategy: + matrix: + machine: + - platform: x86_64-linux + - platform: aarch64-linux steps: - uses: actions/checkout@v4 + - if: matrix.machine.platform != 'x86_64-linux' + uses: docker/setup-qemu-action@v3 - uses: cachix/install-nix-action@v26 + with: + extra_nix_config: | + extra-platforms = aarch64-linux - uses: icewind1991/attic-action@v1 with: name: ci instance: https://cache.icewind.me authToken: '${{ secrets.ATTIC_TOKEN }}' - - run: nix build + - run: nix build --option system ${{ matrix.machine.platform }} docker: runs-on: ubuntu-latest