ci: Use YAML anchor and aliases for repeated "CI script" steps
This commit is contained in:
90
.github/workflows/ci.yml
vendored
90
.github/workflows/ci.yml
vendored
@@ -111,7 +111,8 @@ jobs:
|
|||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: CI script
|
- &CI_SCRIPT_IN_DOCKER
|
||||||
|
name: CI script
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
env: ${{ matrix.configuration.env_vars }}
|
||||||
uses: ./.github/actions/run-in-docker-action
|
uses: ./.github/actions/run-in-docker-action
|
||||||
with:
|
with:
|
||||||
@@ -148,13 +149,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
s390x_debian:
|
s390x_debian:
|
||||||
@@ -182,13 +177,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
arm32_debian:
|
arm32_debian:
|
||||||
@@ -218,13 +207,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
arm64-debian:
|
arm64-debian:
|
||||||
@@ -257,13 +240,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
ppc64le_debian:
|
ppc64le_debian:
|
||||||
@@ -291,13 +268,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
valgrind_debian:
|
valgrind_debian:
|
||||||
@@ -343,13 +314,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
sanitizers_debian:
|
sanitizers_debian:
|
||||||
@@ -383,13 +348,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
msan_debian:
|
msan_debian:
|
||||||
@@ -430,13 +389,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
mingw_debian:
|
mingw_debian:
|
||||||
@@ -468,13 +421,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
x86_64-macos-native:
|
x86_64-macos-native:
|
||||||
@@ -514,7 +461,8 @@ jobs:
|
|||||||
- name: Install and cache Valgrind
|
- name: Install and cache Valgrind
|
||||||
uses: ./.github/actions/install-homebrew-valgrind
|
uses: ./.github/actions/install-homebrew-valgrind
|
||||||
|
|
||||||
- name: CI script
|
- &CI_SCRIPT_ON_HOST
|
||||||
|
name: CI script
|
||||||
env: ${{ matrix.env_vars }}
|
env: ${{ matrix.env_vars }}
|
||||||
run: ./ci/ci.sh
|
run: ./ci/ci.sh
|
||||||
|
|
||||||
@@ -560,9 +508,7 @@ jobs:
|
|||||||
brew install --quiet automake libtool gcc
|
brew install --quiet automake libtool gcc
|
||||||
ln -s $(brew --prefix gcc)/bin/gcc-?? /usr/local/bin/gcc
|
ln -s $(brew --prefix gcc)/bin/gcc-?? /usr/local/bin/gcc
|
||||||
|
|
||||||
- name: CI script
|
- *CI_SCRIPT_ON_HOST
|
||||||
env: ${{ matrix.env_vars }}
|
|
||||||
run: ./ci/ci.sh
|
|
||||||
|
|
||||||
- name: Symbol check
|
- name: Symbol check
|
||||||
env:
|
env:
|
||||||
@@ -677,13 +623,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- *CHECKOUT
|
- *CHECKOUT
|
||||||
|
- *CI_SCRIPT_IN_DOCKER
|
||||||
- name: CI script
|
|
||||||
env: ${{ matrix.configuration.env_vars }}
|
|
||||||
uses: ./.github/actions/run-in-docker-action
|
|
||||||
with:
|
|
||||||
dockerfile: ./ci/linux-debian.Dockerfile
|
|
||||||
|
|
||||||
- *PRINT_LOGS
|
- *PRINT_LOGS
|
||||||
|
|
||||||
cxx_headers_debian:
|
cxx_headers_debian:
|
||||||
|
|||||||
Reference in New Issue
Block a user