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