mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 13:06:01 +01:00
Use GHA runners for VMs since they have KVM
This commit is contained in:
parent
b0aa12df25
commit
20742e63e2
2 changed files with 9 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -7,6 +7,9 @@ on:
|
||||||
runner:
|
runner:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
runner_for_virt:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
runner_small:
|
runner_small:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -61,7 +64,7 @@ jobs:
|
||||||
vm_tests_smoke:
|
vm_tests_smoke:
|
||||||
if: inputs.run_vm_tests && github.event_name != 'merge_group'
|
if: inputs.run_vm_tests && github.event_name != 'merge_group'
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: ${{ inputs.runner_for_virt }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/determinate-nix-action@main
|
- uses: DeterminateSystems/determinate-nix-action@main
|
||||||
|
|
@ -77,7 +80,7 @@ jobs:
|
||||||
vm_tests_all:
|
vm_tests_all:
|
||||||
if: inputs.run_vm_tests && github.event_name == 'merge_group'
|
if: inputs.run_vm_tests && github.event_name == 'merge_group'
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: ${{ inputs.runner_for_virt }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/determinate-nix-action@main
|
- uses: DeterminateSystems/determinate-nix-action@main
|
||||||
|
|
|
||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -36,6 +36,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
system: x86_64-linux
|
system: x86_64-linux
|
||||||
runner: namespace-profile-linuxamd32c64g-cache
|
runner: namespace-profile-linuxamd32c64g-cache
|
||||||
|
runner_for_virt: UbuntuLatest32Cores128G
|
||||||
runner_small: ubuntu-latest
|
runner_small: ubuntu-latest
|
||||||
run_tests: true
|
run_tests: true
|
||||||
run_vm_tests: true
|
run_vm_tests: true
|
||||||
|
|
@ -47,6 +48,7 @@ jobs:
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
system: aarch64-linux
|
system: aarch64-linux
|
||||||
runner: UbuntuLatest32Cores128GArm
|
runner: UbuntuLatest32Cores128GArm
|
||||||
|
runner_for_virt: UbuntuLatest32Cores128GArm
|
||||||
runner_small: UbuntuLatest32Cores128GArm
|
runner_small: UbuntuLatest32Cores128GArm
|
||||||
|
|
||||||
build_x86_64-darwin:
|
build_x86_64-darwin:
|
||||||
|
|
@ -55,6 +57,7 @@ jobs:
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
system: x86_64-darwin
|
system: x86_64-darwin
|
||||||
runner: macos-latest-large
|
runner: macos-latest-large
|
||||||
|
runner_for_virt: macos-latest-large
|
||||||
runner_small: macos-latest-large
|
runner_small: macos-latest-large
|
||||||
|
|
||||||
build_aarch64-darwin:
|
build_aarch64-darwin:
|
||||||
|
|
@ -62,6 +65,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
system: aarch64-darwin
|
system: aarch64-darwin
|
||||||
runner: namespace-profile-mac-m2-12c28g
|
runner: namespace-profile-mac-m2-12c28g
|
||||||
|
runner_for_virt: namespace-profile-mac-m2-12c28g
|
||||||
runner_small: macos-latest-xlarge
|
runner_small: macos-latest-xlarge
|
||||||
|
|
||||||
success:
|
success:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue