Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Update compile-test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Eason Lu <[email protected]>
  • Loading branch information
aelnosu authored Sep 12, 2023
1 parent 97d236b commit 912ca1a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:
sudo apt install -y clang
sudo apt install -y llvm
- name: Compile C++ code (C++03)
run: |
g++ -std=c++03 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc03
clang++ -std=c++03 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang03
- name: Compile C++ code (C++11)
run: |
g++ -std=c++11 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc11
clang++ -std=c++11 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang11
- name: Compile C++ code (C++14)
run: |
g++ -std=c++14 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc14
Expand All @@ -42,7 +52,7 @@ jobs:
- name: Compile C++ code (C++23)
run: |
g++ -std=c++23 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc23
clang++ -std=c++23 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang23
clng++ -std=c++2b -Wall -Wextra -Werror -pedantic -c password.cpp -o clang23
- name: Upload build artifact
if: success()
Expand Down

0 comments on commit 912ca1a

Please sign in to comment.