Skip to content

Commit

Permalink
ci: just set required env globally
Browse files Browse the repository at this point in the history
(backport <#3891>)
(cherry picked from commit 7294016)
  • Loading branch information
tgross35 committed Nov 7, 2024
1 parent 164a8a4 commit 04b3b07
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/full_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- libc-0.2

env:
LIBC_CI: 1

jobs:
docker_linux_tier1:
name: Docker Linux Tier1
Expand All @@ -21,7 +24,7 @@ jobs:
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
run: sh ./ci/run-docker.sh ${{ matrix.target }}

macos:
name: macOS
Expand All @@ -36,7 +39,7 @@ jobs:
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
run: sh ./ci/run.sh ${{ matrix.target }}

windows:
name: Windows
Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
shell: bash
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
run: sh ./ci/run.sh ${{ matrix.target }}
shell: bash

style_check:
Expand Down Expand Up @@ -117,7 +120,7 @@ jobs:
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
run: sh ./ci/run-docker.sh ${{ matrix.target }}

build_channels_linux:
name: Build Channels Linux
Expand Down Expand Up @@ -145,7 +148,7 @@ jobs:
- name: Setup Rust toolchain
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh

build_channels_macos:
name: Build Channels macOS
Expand All @@ -166,7 +169,7 @@ jobs:
- name: Setup Rust toolchain
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/install-rust.sh
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh
run: TOOLCHAIN=${{ matrix.target.toolchain }} sh ./ci/build.sh

build_channels_windows:
name: Build Channels Windows
Expand All @@ -188,7 +191,7 @@ jobs:
run: rustup self update
shell: bash
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
run: TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
shell: bash

check_cfg:
Expand All @@ -199,7 +202,7 @@ jobs:
- name: Setup Rust toolchain
run: TOOLCHAIN=nightly sh ./ci/install-rust.sh
- name: Build with check-cfg
run: LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg
run: LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg

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

0 comments on commit 04b3b07

Please # to comment.