mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(gcc)
some of the GHA runners have incomplete SDKs
This commit is contained in:
parent
625b45db12
commit
61f2e7cf17
1 changed files with 7 additions and 0 deletions
|
@ -126,6 +126,13 @@ test:
|
||||||
- gcc -print-libgcc-file-name
|
- gcc -print-libgcc-file-name
|
||||||
- gcc -print-multiarch
|
- gcc -print-multiarch
|
||||||
- gcc -dumpspecs
|
- gcc -dumpspecs
|
||||||
|
# gha mac runners have broken SDKs...
|
||||||
|
- run: |
|
||||||
|
if ! -f /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h; then
|
||||||
|
echo "Missing SDK; skipping remaining tests"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
if: darwin
|
||||||
- gcc -o test1 test.c -lgmp
|
- gcc -o test1 test.c -lgmp
|
||||||
- ./test1
|
- ./test1
|
||||||
- g++ -o test2 test.cc
|
- g++ -o test2 test.cc
|
||||||
|
|
Loading…
Reference in a new issue