Skip to content

Commit

Permalink
Test under clang
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Nov 23, 2024
1 parent 2b4be21 commit 14ff096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
cache: pip
- run: pip3 install -r requirements.txt
- run: python3 test.py
- run: python3 test.py --clang
linux-arm64:
runs-on: buildjet-2vcpu-ubuntu-2204-arm
steps:
- uses: actions/checkout@v4
- run: pip3 install -r requirements.txt
- run: python3 test.py
- run: python3 test.py --clang
linux-i386:
runs-on: ubuntu-22.04
steps:
Expand Down
5 changes: 4 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def compile(source, target, blazingio):
arch = "x86_64"
elif arch == "arm64":
arch = "aarch64"
gcc = ["g++"]
if len(sys.argv) >= 2 and sys.argv[1] == "--clang":
gcc = ["clang++"]
else:
gcc = ["g++"]
if platform.system() == "Windows":
disable_sanitizers = True

Expand Down

0 comments on commit 14ff096

Please sign in to comment.