mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Fix merge conflicts with main
This commit is contained in:
commit
cb84d20e79
3 changed files with 55 additions and 45 deletions
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
|
@ -4,10 +4,21 @@ on:
|
||||||
os:
|
os:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
system:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
if:
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
run_tests:
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
if: ${{ inputs.if }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
@ -18,11 +29,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
determinate: true
|
determinate: true
|
||||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||||
- run: echo "system=$(nix eval --impure --raw --expr 'builtins.currentSystem')" >> "$GITHUB_OUTPUT"
|
- run: nix build .#packages.${{ inputs.system }}.default .#packages.${{ inputs.system }}.binaryTarball --no-link -L
|
||||||
id: system
|
- run: nix build .#packages.${{ inputs.system }}.binaryTarball --out-link tarball
|
||||||
- run: nix build .# .#binaryTarball --no-link -L
|
|
||||||
- run: nix build .#binaryTarball --out-link tarball
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.system.outputs.system }}
|
name: ${{ inputs.system }}
|
||||||
path: ./tarball/*.xz
|
path: ./tarball/*.xz
|
||||||
|
test:
|
||||||
|
if: ${{ inputs.if && inputs.run_tests}}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
runs-on: ${{ inputs.os }}
|
||||||
|
timeout-minutes: 60
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
with:
|
||||||
|
determinate: true
|
||||||
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||||
|
- run: nix flake check -L --system ${{ inputs.system }}
|
||||||
|
|
55
.github/workflows/ci.yml
vendored
55
.github/workflows/ci.yml
vendored
|
@ -17,62 +17,39 @@ jobs:
|
||||||
eval:
|
eval:
|
||||||
runs-on: blacksmith-32vcpu-ubuntu-2204
|
runs-on: blacksmith-32vcpu-ubuntu-2204
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
with:
|
||||||
determinate: true
|
determinate: true
|
||||||
- run: nix flake show --all-systems --json
|
- run: nix flake show --all-systems --json
|
||||||
|
|
||||||
build_x86_64-linux:
|
build_x86_64-linux:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: blacksmith-32vcpu-ubuntu-2204
|
os: blacksmith-32vcpu-ubuntu-2204
|
||||||
|
system: x86_64-linux
|
||||||
|
|
||||||
build_aarch64-linux:
|
build_aarch64-linux:
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
os: blacksmith-32vcpu-ubuntu-2204-arm
|
os: blacksmith-32vcpu-ubuntu-2204-arm
|
||||||
|
system: aarch64-linux
|
||||||
|
|
||||||
build_x86_64-darwin:
|
build_x86_64-darwin:
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: macos-latest-large
|
if: ${{ github.event_name == 'merge_group' }}
|
||||||
|
os: namespace-profile-mac-m2-12c28g
|
||||||
|
system: x86_64-darwin
|
||||||
|
|
||||||
build_aarch64-darwin:
|
build_aarch64-darwin:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: macos-latest-xlarge
|
os: namespace-profile-mac-m2-12c28g
|
||||||
|
system: aarch64-darwin
|
||||||
test_x86_64-linux:
|
|
||||||
uses: ./.github/workflows/test.yml
|
|
||||||
needs: build_x86_64-linux
|
|
||||||
with:
|
|
||||||
os: blacksmith-32vcpu-ubuntu-2204
|
|
||||||
|
|
||||||
test_aarch64-linux:
|
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
|
||||||
needs: build_aarch64-linux
|
|
||||||
with:
|
|
||||||
os: blacksmith-32vcpu-ubuntu-2204-arm
|
|
||||||
|
|
||||||
test_x86_64-darwin:
|
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
|
||||||
needs: build_aarch64-darwin
|
|
||||||
with:
|
|
||||||
os: macos-latest-large
|
|
||||||
|
|
||||||
test_aarch64-darwin:
|
|
||||||
if: github.event_name == 'merge_group'
|
|
||||||
uses: ./.github/workflows/test.yml
|
|
||||||
needs: build_aarch64-darwin
|
|
||||||
with:
|
|
||||||
os: macos-latest-xlarge
|
|
||||||
|
|
||||||
vm_tests_smoke:
|
vm_tests_smoke:
|
||||||
if: github.event_name != 'merge_group'
|
if: github.event_name != 'merge_group'
|
||||||
|
@ -155,7 +132,7 @@ jobs:
|
||||||
run: nix build .#hydraJobs.manual
|
run: nix build .#hydraJobs.manual
|
||||||
- uses: nwtgck/actions-netlify@v3.0
|
- uses: nwtgck/actions-netlify@v3.0
|
||||||
with:
|
with:
|
||||||
publish-dir: './result/share/doc/nix/manual'
|
publish-dir: "./result/share/doc/nix/manual"
|
||||||
production-branch: detsys-main
|
production-branch: detsys-main
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
deploy-message: "Deploy from GitHub Actions"
|
deploy-message: "Deploy from GitHub Actions"
|
||||||
|
|
11
.github/workflows/upload-release.yml
vendored
11
.github/workflows/upload-release.yml
vendored
|
@ -29,18 +29,29 @@ jobs:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: blacksmith-32vcpu-ubuntu-2204
|
os: blacksmith-32vcpu-ubuntu-2204
|
||||||
|
system: x86_64-linux
|
||||||
|
run_tests: false
|
||||||
|
|
||||||
build-aarch64-linux:
|
build-aarch64-linux:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: blacksmith-32vcpu-ubuntu-2204-arm
|
os: blacksmith-32vcpu-ubuntu-2204-arm
|
||||||
|
system: aarch64-linux
|
||||||
|
run_tests: false
|
||||||
|
|
||||||
build-x86_64-darwin:
|
build-x86_64-darwin:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: macos-13
|
os: macos-13
|
||||||
|
system: x86_64-darwin
|
||||||
|
run_tests: false
|
||||||
|
|
||||||
build-aarch64-darwin:
|
build-aarch64-darwin:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
|
system: aarch64-darwin
|
||||||
|
run_tests: false
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue