From 6ad333aeee5d0d594ef9b9119bdd38583eec1005 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Jul 2024 11:13:55 +0200 Subject: [PATCH] GitHub CI: Use a bigger builder for x86_64-linux Also, don't use a matrix for the 'tests' workflow, since we don't want the 'vm_tests' and 'flake_regressions' workflows to depend on aarch64-darwin. --- .github/workflows/ci.yml | 27 +++++++++++---------------- .github/workflows/test.yml | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8c5439bb..6b184288b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,23 +10,18 @@ permissions: jobs: - tests: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - timeout-minutes: 60 - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - with: - flakehub: true - - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix flake check -L + test_x86_64-linux: + uses: ./.github/workflows/test.yml + with: + os: UbuntuLatest32Cores128G + + test_aarch64-darwin: + uses: ./.github/workflows/test.yml + with: + os: macos-latest vm_tests: - needs: tests + needs: test_x86_64-linux runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -37,7 +32,7 @@ jobs: - run: nix build -L .#hydraJobs.tests.githubFlakes .#hydraJobs.tests.tarballFlakes flake_regressions: - needs: tests + needs: test_x86_64-linux runs-on: ubuntu-22.04 steps: - name: Checkout nix diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..14e4c5fa5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +on: + workflow_call: + inputs: + os: + required: true + type: string + +jobs: + + tests: + strategy: + fail-fast: false + runs-on: ${{ inputs.os }} + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + with: + flakehub: true + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix flake check -L