From 6c8d3b5de38000735bfd01d38e9caad7f21a1d26 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 18 Jan 2025 01:08:04 +0900 Subject: [PATCH] ci: add aarch64-linux runner --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0f89029..21959c50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,9 +11,13 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-14] + os: [ubuntu-latest, ubuntu-24.04-arm, macos-14] steps: - uses: actions/checkout@v4 + - name: Workaround to fix environment variables in aarch64-linux + # https://github.com/orgs/community/discussions/148648#discussioncomment-11867019 + if: matrix.os == 'ubuntu-24.04-arm' + run: for var in PATH XDG_CONFIG_HOME; do sed -Ee "s/^/${var}=/" -e 's/(runner)admin/\1/g' <<< "${!var}"; done | tee -a "$GITHUB_ENV" - uses: cachix/install-nix-action@v30 - name: Setup cachix uses: cachix/cachix-action@v15