Try to split up CI a bit more so it runs faster (#63)
This commit is contained in:
parent
5541ec5519
commit
44ba826f67
77
.github/workflows/build.yml
vendored
77
.github/workflows/build.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc, clang]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: dependencies
|
- name: dependencies
|
||||||
@ -30,9 +34,13 @@ jobs:
|
|||||||
cd ../../cpptrace
|
cd ../../cpptrace
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
python3 ci/build-in-all-configs.py
|
python3 ci/build-in-all-configs.py --${{matrix.compiler}}
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc, clang]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: dependencies
|
- name: dependencies
|
||||||
@ -55,61 +63,13 @@ jobs:
|
|||||||
cd ../../cpptrace
|
cd ../../cpptrace
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
python3 ci/build-in-all-configs.py
|
python3 ci/build-in-all-configs.py --${{matrix.compiler}}
|
||||||
build-windows-msvc:
|
build-windows:
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Enable Developer Command Prompt
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
|
||||||
- name: dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install colorama
|
|
||||||
- name: libdwarf
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
mkdir libdwarf
|
|
||||||
cd libdwarf
|
|
||||||
git init
|
|
||||||
git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git
|
|
||||||
git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
||||||
msbuild INSTALL.vcxproj
|
|
||||||
cd ../../cpptrace
|
|
||||||
- name: build
|
|
||||||
run: |
|
|
||||||
python3 ci/build-in-all-configs.py --msvc-only
|
|
||||||
build-windows-clang:
|
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Enable Developer Command Prompt
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
|
||||||
- name: dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install colorama
|
|
||||||
- name: libdwarf
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
mkdir libdwarf
|
|
||||||
cd libdwarf
|
|
||||||
git init
|
|
||||||
git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git
|
|
||||||
git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
||||||
msbuild INSTALL.vcxproj
|
|
||||||
cd ../../cpptrace
|
|
||||||
- name: build
|
|
||||||
run: |
|
|
||||||
python3 ci/build-in-all-configs.py --clang-only
|
|
||||||
build-windows-mingw:
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [msvc, clang, gcc]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Enable Developer Command Prompt
|
- name: Enable Developer Command Prompt
|
||||||
@ -128,10 +88,15 @@ jobs:
|
|||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
if("${{matrix.compiler}}" -eq "gcc") {
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles"
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles"
|
||||||
make -j
|
make -j
|
||||||
make install
|
make install
|
||||||
|
} else {
|
||||||
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
||||||
|
msbuild INSTALL.vcxproj
|
||||||
|
}
|
||||||
cd ../../cpptrace
|
cd ../../cpptrace
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
python3 ci/build-in-all-configs.py --mingw-only
|
python3 ci/build-in-all-configs.py --${{matrix.compiler}}
|
||||||
|
|||||||
77
.github/workflows/test.yml
vendored
77
.github/workflows/test.yml
vendored
@ -9,6 +9,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test-linux:
|
test-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc, clang]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: dependencies
|
- name: dependencies
|
||||||
@ -32,9 +36,13 @@ jobs:
|
|||||||
cd ../../cpptrace
|
cd ../../cpptrace
|
||||||
- name: build and test
|
- name: build and test
|
||||||
run: |
|
run: |
|
||||||
python3 ci/test-all-configs.py
|
python3 ci/test-all-configs.py --${{matrix.compiler}}
|
||||||
test-macos:
|
test-macos:
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc, clang]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: libdwarf
|
- name: libdwarf
|
||||||
@ -57,61 +65,13 @@ jobs:
|
|||||||
pip3 install colorama
|
pip3 install colorama
|
||||||
- name: build and test
|
- name: build and test
|
||||||
run: |
|
run: |
|
||||||
python3 ci/test-all-configs.py
|
python3 ci/test-all-configs.py --${{matrix.compiler}}
|
||||||
test-windows-msvc:
|
test-windows:
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Enable Developer Command Prompt
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
|
||||||
- name: dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install colorama
|
|
||||||
- name: libdwarf
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
mkdir libdwarf
|
|
||||||
cd libdwarf
|
|
||||||
git init
|
|
||||||
git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git
|
|
||||||
git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
||||||
msbuild INSTALL.vcxproj
|
|
||||||
cd ../../cpptrace
|
|
||||||
- name: build and test
|
|
||||||
run: |
|
|
||||||
python3 ci/test-all-configs.py --msvc-only
|
|
||||||
test-windows-clang:
|
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Enable Developer Command Prompt
|
|
||||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
|
||||||
- name: dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install colorama
|
|
||||||
- name: libdwarf
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
mkdir libdwarf
|
|
||||||
cd libdwarf
|
|
||||||
git init
|
|
||||||
git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git
|
|
||||||
git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
||||||
msbuild INSTALL.vcxproj
|
|
||||||
cd ../../cpptrace
|
|
||||||
- name: build and test
|
|
||||||
run: |
|
|
||||||
python3 ci/test-all-configs.py --clang-only
|
|
||||||
test-windows-mingw:
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
compiler: [msvc, clang, gcc]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Enable Developer Command Prompt
|
- name: Enable Developer Command Prompt
|
||||||
@ -130,10 +90,15 @@ jobs:
|
|||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
if("${{matrix.compiler}}" -eq "gcc") {
|
||||||
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles"
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles"
|
||||||
make -j
|
make -j
|
||||||
make install
|
make install
|
||||||
|
} else {
|
||||||
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
||||||
|
msbuild INSTALL.vcxproj
|
||||||
|
}
|
||||||
cd ../../cpptrace
|
cd ../../cpptrace
|
||||||
- name: build and test
|
- name: build and test
|
||||||
run: |
|
run: |
|
||||||
python3 ci/test-all-configs.py --mingw-only
|
python3 ci/test-all-configs.py --${{matrix.compiler}}
|
||||||
|
|||||||
@ -142,10 +142,32 @@ def main():
|
|||||||
prog="Build in all configs",
|
prog="Build in all configs",
|
||||||
description="Try building the library in all possible configurations for the current host"
|
description="Try building the library in all possible configurations for the current host"
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--clang",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--gcc",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--msvc",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--all",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
|
compilers = []
|
||||||
|
if args.clang or args.all:
|
||||||
|
compilers.append("clang++-14")
|
||||||
|
if args.gcc or args.all:
|
||||||
|
compilers.append("g++-10")
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-10", "clang++-14"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"unwind": [
|
"unwind": [
|
||||||
@ -169,7 +191,7 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build)
|
run_matrix(matrix, exclude, build)
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-10", "clang++-14"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"config": [""]
|
"config": [""]
|
||||||
@ -177,8 +199,13 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_full_or_auto)
|
run_matrix(matrix, exclude, build_full_or_auto)
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
|
compilers = []
|
||||||
|
if args.clang or args.all:
|
||||||
|
compilers.append("clang++")
|
||||||
|
if args.gcc or args.all:
|
||||||
|
compilers.append("g++-12")
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-12", "clang++"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"unwind": [
|
"unwind": [
|
||||||
@ -201,7 +228,7 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build)
|
run_matrix(matrix, exclude, build)
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-12", "clang++"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"config": [""]
|
"config": [""]
|
||||||
@ -209,28 +236,13 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_full_or_auto)
|
run_matrix(matrix, exclude, build_full_or_auto)
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
parser.add_argument(
|
compilers = []
|
||||||
"--clang-only",
|
if args.clang or args.all:
|
||||||
action="store_true"
|
compilers.append("clang++")
|
||||||
)
|
if args.msvc or args.all:
|
||||||
parser.add_argument(
|
compilers.append("cl")
|
||||||
"--msvc-only",
|
if args.gcc or args.all:
|
||||||
action="store_true"
|
compilers.append("g++")
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"--mingw-only",
|
|
||||||
action="store_true"
|
|
||||||
)
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
compilers = ["cl", "clang++", "g++"]
|
|
||||||
if args.clang_only:
|
|
||||||
compilers = ["clang++"]
|
|
||||||
if args.msvc_only:
|
|
||||||
compilers = ["cl"]
|
|
||||||
if args.mingw_only:
|
|
||||||
compilers = ["g++"]
|
|
||||||
|
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": compilers,
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
|
|||||||
@ -310,10 +310,32 @@ def main():
|
|||||||
prog="Build in all configs",
|
prog="Build in all configs",
|
||||||
description="Try building the library in all possible configurations for the current host"
|
description="Try building the library in all possible configurations for the current host"
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--clang",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--gcc",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--msvc",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--all",
|
||||||
|
action="store_true"
|
||||||
|
)
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
|
compilers = []
|
||||||
|
if args.clang or args.all:
|
||||||
|
compilers.append("clang++-14")
|
||||||
|
if args.gcc or args.all:
|
||||||
|
compilers.append("g++-10")
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-10", "clang++-14"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"unwind": [
|
"unwind": [
|
||||||
@ -338,7 +360,7 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_and_test)
|
run_matrix(matrix, exclude, build_and_test)
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-10", "clang++-14"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"config": [""]
|
"config": [""]
|
||||||
@ -346,8 +368,13 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_and_test_full_or_auto)
|
run_matrix(matrix, exclude, build_and_test_full_or_auto)
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
|
compilers = []
|
||||||
|
if args.clang or args.all:
|
||||||
|
compilers.append("clang++")
|
||||||
|
if args.gcc or args.all:
|
||||||
|
compilers.append("g++-12")
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-12", "clang++"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"unwind": [
|
"unwind": [
|
||||||
@ -370,7 +397,7 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_and_test)
|
run_matrix(matrix, exclude, build_and_test)
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": ["g++-12", "clang++"],
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
"std": ["11", "20"],
|
"std": ["11", "20"],
|
||||||
"config": [""]
|
"config": [""]
|
||||||
@ -378,28 +405,13 @@ def main():
|
|||||||
exclude = []
|
exclude = []
|
||||||
run_matrix(matrix, exclude, build_and_test_full_or_auto)
|
run_matrix(matrix, exclude, build_and_test_full_or_auto)
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
parser.add_argument(
|
compilers = []
|
||||||
"--clang-only",
|
if args.clang or args.all:
|
||||||
action="store_true"
|
compilers.append("clang++")
|
||||||
)
|
if args.msvc or args.all:
|
||||||
parser.add_argument(
|
compilers.append("cl")
|
||||||
"--msvc-only",
|
if args.gcc or args.all:
|
||||||
action="store_true"
|
compilers.append("g++")
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"--mingw-only",
|
|
||||||
action="store_true"
|
|
||||||
)
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
compilers = ["cl", "clang++", "g++"]
|
|
||||||
if args.clang_only:
|
|
||||||
compilers = ["clang++"]
|
|
||||||
if args.msvc_only:
|
|
||||||
compilers = ["cl"]
|
|
||||||
if args.mingw_only:
|
|
||||||
compilers = ["g++"]
|
|
||||||
|
|
||||||
matrix = {
|
matrix = {
|
||||||
"compiler": compilers,
|
"compiler": compilers,
|
||||||
"target": ["Debug"],
|
"target": ["Debug"],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user