From 883bbd3d76c3120b30d54e88506214e811a21880 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 11 Oct 2023 00:11:42 +0900 Subject: [PATCH] Tweak CI config --- .github/workflows/ci.yml | 2 +- tools/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 738558e1..6248b61e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,7 +242,7 @@ jobs: if: matrix.target != '' # TODO: LLVM bug: Undefined temporary symbol error when building std. - run: echo "RELEASE=--release" >>"${GITHUB_ENV}" - if: matrix.target == 'mips-unknown-linux-gnu' || matrix.target == 'mipsel-unknown-linux-gnu' + if: startsWith(matrix.target, 'mips-') || startsWith(matrix.target, 'mipsel-') - run: tools/test.sh -vv $TARGET $DOCTEST_XCOMPILE $BUILD_STD $RELEASE # We test doctest only once with the default build conditions because doctest is slow. Both api-test diff --git a/tools/build.sh b/tools/build.sh index db168d59..69cc9a7b 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -344,7 +344,7 @@ build() { if ! grep <<<"${rustup_target_list}" -Eq "^${target}$"; then case "${target}" in # TODO: LLVM bug: Undefined temporary symbol error when building std. - mips-unknown-linux-gnu | mipsel-unknown-linux-gnu) target_rustflags+=" -C opt-level=3" ;; + mips-*-linux-* | mipsel-*-linux-*) target_rustflags+=" -C opt-level=1" ;; esac fi offline=()