Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 34c0ea3

Browse files
committedJul 18, 2024·
create check-default-config-profiles.sh for mingw-check
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 6310da9 commit 34c0ea3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
 

‎src/ci/docker/host-x86_64/mingw-check/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
4646
# We disable optimized compiler built-ins because that requires a C toolchain for the target.
4747
# We also skip the x86_64-unknown-linux-gnu target as it is well-tested by other jobs.
4848
ENV SCRIPT python3 ../x.py check --stage 0 --set build.optimized-compiler-builtins=false core alloc std --target=aarch64-unknown-linux-gnu,i686-pc-windows-msvc,i686-unknown-linux-gnu,x86_64-apple-darwin,x86_64-pc-windows-gnu,x86_64-pc-windows-msvc && \
49-
# Ensure that default config profiles are not broken
50-
for config_file in ../src/bootstrap/defaults/*.toml; do python3 ../x.py build --dry-run --config \"$$config_file\"; done && \
49+
/scripts/check-default-config-profiles.sh && \
5150
python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
5251
python3 ../x.py clippy bootstrap -Dwarnings && \
5352
python3 ../x.py clippy compiler library -Aclippy::all -Dclippy::correctness && \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
# Runs bootstrap (in dry-run mode) with each default config profile to ensure they are not broken.
3+
4+
set -euo pipefail
5+
6+
config_dir="../src/bootstrap/defaults"
7+
8+
# Loop through each configuration file in the directory
9+
for config_file in "$config_dir"/*.toml;
10+
do
11+
python3 ../x.py build --config $config_file --dry-run
12+
done

0 commit comments

Comments
 (0)
Please sign in to comment.