Unverified Commit d3e4865b authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

workflows: use ARM runners

ARM runners are supposed to be more energy efficient than x86. Also,
from limited testing, they appear to be faster for the eval jobs as
well. Average run time for the "Outpaths (x86_64-linux)" job was 4m 27s,
so far. In the first run, this job came in at 3m 9s. This effect did not
show for other jobs, yet.

The following two exceptions are made right now:
- nixpkgs-lib-tests currently fails on the ARM runner building Nix 2.3
- nixpkgs-vet is currently pinned to a x86_64-linux only binary release
parent 797c149b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ jobs:
  backport:
    name: Backport Pull Request
    if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event.action != 'labeled' || startsWith(github.event.label.name, 'backport'))
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    steps:
      # Use a GitHub App to create the PR so that CI gets triggered
      # The App is scoped to Repository > Contents and Pull Requests: write for Nixpkgs
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ permissions: {}
jobs:
  check:
    name: cherry-pick-check
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    if: github.repository_owner == 'NixOS'
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ jobs:

  nixos:
    name: fmt-check
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    needs: get-merge-commit
    if: needs.get-merge-commit.outputs.mergedSha
    steps:
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ jobs:
  # Check that code owners is valid
  check:
    name: Check
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    needs: get-merge-commit
    if: github.repository_owner == 'NixOS' && needs.get-merge-commit.outputs.mergedSha
    steps:
@@ -89,7 +89,7 @@ jobs:
  # Request reviews from code owners
  request:
    name: Request
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    if: github.repository_owner == 'NixOS'
    steps:
      - uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ jobs:

  eval-aliases:
    name: Eval nixpkgs with aliases enabled
    runs-on: ubuntu-24.04
    runs-on: ubuntu-24.04-arm
    needs: [ get-merge-commit ]
    steps:
      - name: Check out the PR at the test merge commit
Loading