File tree Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ inputs:
1414 description : ' Filename with expected warnings'
1515 required : true
1616
17+ glibc_assertion :
18+ description : ' Enable GLIBC_ASSERTION for extra runtime checks'
19+ default : false
20+
21+ enable_multilib :
22+ description : ' Enable multilib'
23+ default : true
24+
1725# outputs:
1826# random-number:
1927# description: "Random number"
@@ -53,11 +61,20 @@ runs:
5361 run : |
5462 mkdir -p gccrs-build;
5563 cd gccrs-build;
56- ${{ inputs.extra-configure-env }}
64+ if ${{ inputs.glibc_assertion }}; then
65+ export CXXFLAGS="$CXXFLAGS -D_GLIBCXX_ASSERTIONS"
66+ fi
67+
68+ if ${{ inputs.enable_multilib }}; then
69+ MULTILIB_FLG=--enable-multilib
70+ else
71+ MULTILIB_FLG=--disable-multilib
72+ fi
73+
5774 ../configure \
5875 --enable-languages=rust \
5976 --disable-bootstrap \
60- --disable-multilib
77+ $MULTILIB_FLG
6178
6279 - name : Build GCC
6380 shell : bash
Original file line number Diff line number Diff line change 3030 extra-configure-env : ' '
3131 run_test_flags : ' --target_board=unix\{-m64}'
3232 warning_file : ' log_expected_warnings'
33+ enable_multilib : false
3334
35+ build-and-check-ubuntu-64bit-glibcxx :
36+
37+ env :
38+ # Force locale, in particular for reproducible results re '.github/log_expected_warnings' (see below).
39+ LC_ALL : C.UTF-8
40+
41+ runs-on : ubuntu-22.04
42+
43+ steps :
44+ - uses : actions/checkout@v4
45+
46+ - id : build-and-test
47+ uses : ./.github/actions/build-gcc
48+ with :
49+ extra-configure-env : ' '
50+ run_test_flags : ' --target_board=unix\{-m64}'
51+ warning_file : ' glibcxx_ubuntu64b_log_expected_warnings'
52+ glibc_assertion : true
53+ enable_multilib : false
54+
55+
56+ # # This is redundant with 64bit as we are doing multilib. Should build once and test both.
57+ build-and-check-ubuntu-32bit :
58+ env :
59+ # Force locale, in particular for reproducible results re '.github/log_expected_warnings' (see below).
60+ LC_ALL : C.UTF-8
61+
62+ runs-on : ubuntu-22.04
63+
64+ steps :
65+ - uses : actions/checkout@v4
66+
67+ - id : build-and-test
68+ uses : ./.github/actions/build-gcc
69+ with :
70+ extra-configure-env : ' '
71+ run_test_flags : ' --target_board=unix\{-m32}'
72+ warning_file : ' log_expected_warnings'
73+ glibc_assertion : true
74+ enable_multilib : true
3475# build-and-check-ubuntu-64bit-glibcxx:
3576
3677# env:
You can’t perform that action at this time.
0 commit comments