gh actions: implement skipping ci builds, global and per-arch
parent
6e7ffe29bd
commit
251448dd13
|
@ -6,6 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
x86_64-linux:
|
x86_64-linux:
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip-ci x64]')"
|
||||||
runs-on: self-hosted-x86_64-linux
|
runs-on: self-hosted-x86_64-linux
|
||||||
steps:
|
steps:
|
||||||
- name: repository checkout
|
- name: repository checkout
|
||||||
|
@ -14,6 +15,7 @@ jobs:
|
||||||
run: ./.ci.sh
|
run: ./.ci.sh
|
||||||
|
|
||||||
aarch64-linux:
|
aarch64-linux:
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip-ci arm64]')"
|
||||||
runs-on: self-hosted-aarch64-linux
|
runs-on: self-hosted-aarch64-linux
|
||||||
steps:
|
steps:
|
||||||
- name: repository checkout
|
- name: repository checkout
|
||||||
|
|
|
@ -6,6 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-hosts:
|
get-hosts:
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
|
||||||
runs-on: self-hosted-x86_64-linux
|
runs-on: self-hosted-x86_64-linux
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.hosts_out.outputs.matrix }}
|
matrix: ${{ steps.hosts_out.outputs.matrix }}
|
||||||
|
@ -26,6 +27,7 @@ jobs:
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
x86_64-linux:
|
x86_64-linux:
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip-ci x64]')"
|
||||||
runs-on: self-hosted-x86_64-linux
|
runs-on: self-hosted-x86_64-linux
|
||||||
needs: [get-hosts]
|
needs: [get-hosts]
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -39,6 +41,7 @@ jobs:
|
||||||
run: nixos-rebuild build --verbose --flake ".#${{ matrix.host }}"
|
run: nixos-rebuild build --verbose --flake ".#${{ matrix.host }}"
|
||||||
|
|
||||||
aarch64-linux:
|
aarch64-linux:
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip-ci arm64]')"
|
||||||
runs-on: self-hosted-aarch64-linux
|
runs-on: self-hosted-aarch64-linux
|
||||||
needs: [get-hosts]
|
needs: [get-hosts]
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Reference in New Issue