test/improve CI skipping logic
[skip-ci]main
parent
8d56f2f153
commit
fea56fc51d
|
@ -6,7 +6,9 @@ on:
|
|||
|
||||
jobs:
|
||||
x86_64-linux:
|
||||
if: "!contains(github.event.head_commit.message, '[skip-ci x64]')"
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip-ci arm64]')
|
||||
|| !contains(github.event.head_commit.message, '[skip-ci]')
|
||||
runs-on: self-hosted-x86_64-linux
|
||||
steps:
|
||||
- name: repository checkout
|
||||
|
@ -15,7 +17,9 @@ jobs:
|
|||
run: ./.ci.sh
|
||||
|
||||
aarch64-linux:
|
||||
if: "!contains(github.event.head_commit.message, '[skip-ci arm64]')"
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip-ci arm64]')
|
||||
|| !contains(github.event.head_commit.message, '[skip-ci]')
|
||||
runs-on: self-hosted-aarch64-linux
|
||||
steps:
|
||||
- name: repository checkout
|
||||
|
|
|
@ -27,7 +27,9 @@ jobs:
|
|||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
x86_64-linux:
|
||||
if: "!contains(github.event.head_commit.message, '[skip-ci x64]')"
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip-ci x64]')
|
||||
|| !contains(github.event.head_commit.message, '[skip-ci]')
|
||||
runs-on: self-hosted-x86_64-linux
|
||||
needs: [get-hosts]
|
||||
strategy:
|
||||
|
@ -41,7 +43,9 @@ jobs:
|
|||
run: nixos-rebuild build --verbose --flake ".#${{ matrix.host }}"
|
||||
|
||||
aarch64-linux:
|
||||
if: "!contains(github.event.head_commit.message, '[skip-ci arm64]')"
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip-ci arm64]')
|
||||
|| !contains(github.event.head_commit.message, '[skip-ci]')
|
||||
runs-on: self-hosted-aarch64-linux
|
||||
needs: [get-hosts]
|
||||
strategy:
|
||||
|
|
Loading…
Reference in New Issue