public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] rust: Clang/macOS Testing
@ 2022-06-08 12:30 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:649f6640c6259f7bbea6727c73adfc8d03025a38
commit 649f6640c6259f7bbea6727c73adfc8d03025a38
Author: Simon Cook <simon.cook@embecosm.com>
Date: Tue Apr 12 18:03:58 2022 +0200
rust: Clang/macOS Testing
This adds a version of the build-and-check job that runs with clang on
macOS.
Diff:
---
.github/workflows/ccpp.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 6159047a1b6..f4bf50bc500 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -149,3 +149,57 @@ jobs:
else \
exit 0; \
fi
+
+ build-and-check-clang-macos:
+
+ env:
+ # Force CC/CXX to be explicitly clang to make it clear which compiler is used
+ CC: clang
+ CXX: clang++
+
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Deps
+ run: |
+ brew install dejagnu mpfr libmpc gmp
+
+ - name: Configure
+ run: |
+ mkdir -p gccrs-build;
+ cd gccrs-build;
+ ../configure \
+ --enable-languages=rust \
+ --disable-bootstrap \
+ --enable-multilib \
+ --with-native-system-header-dir=/usr/include \
+ --with-sysroot=$(xcrun --show-sdk-path)
+
+ - name: Build
+ shell: bash
+ run: |
+ cd gccrs-build; \
+ make -j $(sysctl -n hw.ncpu) 2>&1 | tee log
+
+ - name: Run Tests
+ run: |
+ cd gccrs-build; \
+ make check-rust
+ - name: Archive check-rust results
+ uses: actions/upload-artifact@v2
+ with:
+ name: check-rust-logs-macos
+ path: |
+ gccrs-build/gcc/testsuite/rust/
+ - name: Check regressions
+ run: |
+ cd gccrs-build; \
+ if grep -e "unexpected" -e "unresolved" gcc/testsuite/rust/rust.sum;\
+ then \
+ echo "some tests are not correct"; \
+ exit 1; \
+ else \
+ exit 0; \
+ fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:30 [gcc/devel/rust/master] rust: Clang/macOS Testing Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).