Skip to content

Commit 7294016

Browse files
committed
ci: just set required env globally
1 parent 2e4e0ed commit 7294016

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/full_ci.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77

8+
env:
9+
LIBC_CI: 1
10+
811
jobs:
912
style_check:
1013
name: Style check
@@ -35,7 +38,7 @@ jobs:
3538
- name: Setup Rust toolchain
3639
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
3740
- name: Execute build.sh
38-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
41+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
3942

4043
build_channels_macos:
4144
name: Build Channels macOS
@@ -57,7 +60,7 @@ jobs:
5760
- name: Setup Rust toolchain
5861
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
5962
- name: Execute build.sh
60-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
63+
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
6164

6265
build_channels_windows:
6366
name: Build Channels Windows
@@ -76,7 +79,7 @@ jobs:
7679
run: rustup self update
7780
shell: bash
7881
- name: Execute build.sh
79-
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
82+
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
8083
shell: bash
8184

8285
macos:
@@ -92,7 +95,7 @@ jobs:
9295
- name: Setup Rust toolchain
9396
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
9497
- name: Execute run.sh
95-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
98+
run: sh ./ci/run.sh ${{ matrix.target }}
9699

97100
windows:
98101
name: Windows
@@ -123,7 +126,7 @@ jobs:
123126
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
124127
shell: bash
125128
- name: Execute run.sh
126-
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
129+
run: sh ./ci/run.sh ${{ matrix.target }}
127130
shell: bash
128131

129132

@@ -141,7 +144,7 @@ jobs:
141144
- name: Setup Rust toolchain
142145
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
143146
- name: Execute run-docker.sh
144-
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
147+
run: sh ./ci/run-docker.sh ${{ matrix.target }}
145148

146149
docker_linux_tier2:
147150
name: Docker Linux Tier2
@@ -181,7 +184,7 @@ jobs:
181184
- name: Setup Rust toolchain
182185
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
183186
- name: Execute run-docker.sh
184-
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
187+
run: sh ./ci/run-docker.sh ${{ matrix.target }}
185188

186189
check_cfg:
187190
name: "Check #[cfg]s"
@@ -191,7 +194,7 @@ jobs:
191194
- name: Setup Rust toolchain
192195
run: TOOLCHAIN=nightly sh ./ci/install-rust.sh
193196
- name: Build with check-cfg
194-
run: LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
197+
run: LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
195198

196199
# One job that "summarizes" the success state of this pipeline. This can then be added to branch
197200
# protection, rather than having to add each job separately.

0 commit comments

Comments
 (0)