Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update clang and CI #91

Merged
merged 4 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,54 +177,54 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc12, gcc13, clang15]
compiler: [gcc12, gcc13, clang15, clang16, clang17, clang18]
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Building (debug-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x86 -build'
- name: Running unit tests (debug-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x86 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (debug-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x64 -build'
- name: Running unit tests (debug-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x64 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -build'
- name: Running unit tests (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -build'
- name: Running unit tests (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -unit_test'

Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,54 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc13, clang15]
compiler: [gcc13, clang18]
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Building (debug-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x86 -build'
- name: Running unit tests (debug-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x86 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (debug-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x64 -build'
- name: Running unit tests (debug-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Debug -cpu x64 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -build'
- name: Running unit tests (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -unit_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -build'
- name: Running unit tests (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -unit_test'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_cpp_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc13, clang15]
compiler: [gcc13, clang18]
cpp_version: [14, 17, 20]
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Building (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -cpp_version ${{ matrix.cpp_version }} -build'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -clean_only'
- name: Building (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v2
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -cpp_version ${{ matrix.cpp_version }} -build'

Expand Down
11 changes: 10 additions & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def parse_argv():
actions.add_argument('-unit_test', action='store_true')

target = parser.add_argument_group(title='Target')
target.add_argument('-compiler', choices=['vs2015', 'vs2017', 'vs2019', 'vs2019-clang', 'vs2022', 'vs2022-clang', 'android', 'clang4', 'clang5', 'clang6', 'clang7', 'clang8', 'clang9', 'clang10', 'clang11', 'clang12', 'clang13', 'clang14', 'clang15', 'gcc4.8', 'gcc4.9', 'gcc5', 'gcc6', 'gcc7', 'gcc8', 'gcc9', 'gcc10', 'gcc11', 'gcc12', 'gcc13', 'osx', 'ios', 'emscripten'], help='Defaults to the host system\'s default compiler')
target.add_argument('-compiler', choices=['vs2015', 'vs2017', 'vs2019', 'vs2019-clang', 'vs2022', 'vs2022-clang', 'android', 'clang4', 'clang5', 'clang6', 'clang7', 'clang8', 'clang9', 'clang10', 'clang11', 'clang12', 'clang13', 'clang14', 'clang15', 'clang16', 'clang17', 'clang18', 'gcc4.8', 'gcc4.9', 'gcc5', 'gcc6', 'gcc7', 'gcc8', 'gcc9', 'gcc10', 'gcc11', 'gcc12', 'gcc13', 'osx', 'ios', 'emscripten'], help='Defaults to the host system\'s default compiler')
target.add_argument('-config', choices=['Debug', 'Release'], type=str.capitalize)
target.add_argument('-cpu', choices=['x86', 'x64', 'armv7', 'arm64', 'wasm'], help='Defaults to the host system\'s architecture')
target.add_argument('-cpp_version', choices=['11', '14', '17', '20'], help='Defaults to C++11')
Expand Down Expand Up @@ -233,6 +233,15 @@ def set_compiler_env(compiler, args):
elif compiler == 'clang15':
os.environ['CC'] = 'clang-15'
os.environ['CXX'] = 'clang++-15'
elif compiler == 'clang16':
os.environ['CC'] = 'clang-16'
os.environ['CXX'] = 'clang++-16'
elif compiler == 'clang17':
os.environ['CC'] = 'clang-17'
os.environ['CXX'] = 'clang++-17'
elif compiler == 'clang18':
os.environ['CC'] = 'clang-18'
os.environ['CXX'] = 'clang++-18'
elif compiler == 'gcc4.8':
os.environ['CC'] = 'gcc-4.8'
os.environ['CXX'] = 'g++-4.8'
Expand Down
Loading