From cafecee23ef122d86fe1ab8e92f74164657eacfb Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Wed, 29 Nov 2023 18:09:15 +0100 Subject: [PATCH 1/4] mabye this will work --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7844e10 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: TestAarch64CrossBuild + +on: + pull_request: {} + workflow_dispatch: {} +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: set up cachix + uses: cachix/cachix-action@v12 + with: + name: crunchy-public + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - uses: actions/checkout@v3 + - name: build + run: nix build .#packages.aarch64-linux.static + - name: Upload release artifact + uses: actions/upload-artifact@v3 + with: + name: cb-aarch64-linux-static + path: result/bin/cb From 6677749af322c18a94cd554305f7e8ba12429588 Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Wed, 29 Nov 2023 18:25:40 +0100 Subject: [PATCH 2/4] eh? --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7844e10..71e9724 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,13 @@ jobs: name: crunchy-public authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - uses: actions/checkout@v3 + + - name: install aarch64-qemu + run: | + DEBIAN_FRONTEND=noninteractive + sudo apt-get update -q -y + sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static + - name: build run: nix build .#packages.aarch64-linux.static - name: Upload release artifact From 40e9015b464aa145b0ed917dae018a43c60f30af Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Wed, 29 Nov 2023 18:30:20 +0100 Subject: [PATCH 3/4] uhhh --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71e9724..bd797e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main + uses: cachix/install-nix-action@v24 + with: + extra_nix_config: extra-platforms = aarch64-linux - name: set up cachix uses: cachix/cachix-action@v12 with: From cafe265b89d5a843f318b342170f232659baba40 Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Thu, 30 Nov 2023 18:08:36 +0100 Subject: [PATCH 4/4] remove --- .github/workflows/test.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index bd797e9..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: TestAarch64CrossBuild - -on: - pull_request: {} - workflow_dispatch: {} -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Install Nix - uses: cachix/install-nix-action@v24 - with: - extra_nix_config: extra-platforms = aarch64-linux - - name: set up cachix - uses: cachix/cachix-action@v12 - with: - name: crunchy-public - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - uses: actions/checkout@v3 - - - name: install aarch64-qemu - run: | - DEBIAN_FRONTEND=noninteractive - sudo apt-get update -q -y - sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static - - - name: build - run: nix build .#packages.aarch64-linux.static - - name: Upload release artifact - uses: actions/upload-artifact@v3 - with: - name: cb-aarch64-linux-static - path: result/bin/cb