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 912ca1a commit 3f35f42
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,45 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install C++ compilers
run: |
sudo apt install -y g++
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
g++ -std=c++03 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc03 || true
clang++ -std=c++03 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang03 || true
- 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
g++ -std=c++11 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc11 || true
clang++ -std=c++11 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang11 || true
- name: Compile C++ code (C++14)
run: |
g++ -std=c++14 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc14
clang++ -std=c++14 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang14
g++ -std=c++14 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc14 || true
clang++ -std=c++14 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang14 || true
- name: Compile C++ code (C++17)
run: |
g++ -std=c++17 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc17
clang++ -std=c++17 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang17
g++ -std=c++17 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc17 || true
clang++ -std=c++17 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang17 || true
- name: Compile C++ code (C++20)
run: |
g++ -std=c++20 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc20
clang++ -std=c++20 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang20
g++ -std=c++20 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc20 || true
clang++ -std=c++20 -Wall -Wextra -Werror -pedantic -c password.cpp -o clang20 || true
- name: Compile C++ code (C++23)
run: |
g++ -std=c++23 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc23
clng++ -std=c++2b -Wall -Wextra -Werror -pedantic -c password.cpp -o clang23
g++ -std=c++23 -Wall -Wextra -Werror -pedantic -c password.cpp -o gcc23 || true
clang++ -std=c++2b -Wall -Wextra -Werror -pedantic -c password.cpp -o clang23 || true
- name: Upload build artifact
if: success()
if: always()
uses: actions/upload-artifact@v3
with:
name: build-artifact
Expand Down

0 comments on commit 3f35f42

Please sign in to comment.