Skip to content

Commit f3e0c08

Browse files
committed
several updates to CI scripts
1 parent b57b4f7 commit f3e0c08

3 files changed

Lines changed: 93 additions & 31 deletions

File tree

.github/workflows/linux.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ on:
88

99
jobs:
1010
build:
11+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
12+
13+
name: Build and Test (linux) - ${{ matrix.os }}-${{ matrix.arch }}
14+
runs-on: ${{ matrix.os }}
15+
1116
strategy:
1217
matrix:
13-
os: [ubuntu-latest]
14-
runs-on: ${{ matrix.os }}
15-
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
18+
include:
19+
- os: ubuntu-latest
20+
arch: x64
21+
- os: ubuntu-24.04-arm
22+
arch: aarch64
23+
24+
1625
steps:
1726
- uses: actions/checkout@v1
1827
with:
@@ -25,7 +34,7 @@ jobs:
2534
run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
2635

2736
- name: build
28-
run: cd test/build && make
37+
run: cd test/build && cmake --build "." --parallel
2938

3039
- name: run test mock backend
3140
run: cd test/build && ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock
@@ -37,11 +46,19 @@ jobs:
3746
run: cd test/build && ASAN_OPTIONS=detect_leaks=0 ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL3_egl
3847

3948
build_shared:
49+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
50+
51+
name: Build Shared and Test (linux) - ${{ matrix.os }}-${{ matrix.arch }}
52+
runs-on: ${{ matrix.os }}
53+
4054
strategy:
4155
matrix:
42-
os: [ubuntu-latest]
43-
runs-on: ${{ matrix.os }}
44-
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
56+
include:
57+
- os: ubuntu-latest
58+
arch: x64
59+
- os: ubuntu-24.04-arm
60+
arch: aarch64
61+
4562
steps:
4663
- uses: actions/checkout@v1
4764
with:
@@ -54,7 +71,7 @@ jobs:
5471
run: cd test && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON -DPOLYSCOPE_BACKEND_OPENGL3_EGL=ON ..
5572

5673
- name: build
57-
run: cd test/build && make
74+
run: cd test/build && cmake --build "." --parallel
5875

5976
- name: run test mock backend
6077
run: cd test/build && ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock
@@ -63,4 +80,5 @@ jobs:
6380
# We get memory leaks inside of EGL that I can't track down. With ASAN, this means the exit code is always nonzero,
6481
# which is indistinguishable from tests failing. The ASAN_OPTIONS=detect_leaks=0 skips checking leaks for this test
6582
# as a workaround.
66-
run: cd test/build && ASAN_OPTIONS=detect_leaks=0 ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL3_egl
83+
# run: cd test/build && ASAN_OPTIONS=detect_leaks=0 ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL3_egl
84+
run: cd test/build && ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL3_egl

.github/workflows/macos.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-latest
1211
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
12+
13+
name: Build and Test (macOS) - ${{ matrix.os }}-${{ matrix.arch }}
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
include:
19+
- os: macos-15-intel
20+
arch: x64
21+
- os: macos-latest
22+
arch: arm64
23+
1324
steps:
1425
- uses: actions/checkout@v1
1526
with:
@@ -19,14 +30,25 @@ jobs:
1930
run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
2031

2132
- name: build
22-
run: cd test/build && make
33+
run: cd test/build && cmake --build "." --parallel
2334

2435
- name: run test
2536
run: cd test/build && ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock
2637

2738
build_shared:
28-
runs-on: macos-latest
2939
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
40+
41+
name: Build Shared and Test (macOS) - ${{ matrix.os }}-${{ matrix.arch }}
42+
runs-on: ${{ matrix.os }}
43+
44+
strategy:
45+
matrix:
46+
include:
47+
- os: macos-15-intel
48+
arch: x64
49+
- os: macos-latest
50+
arch: arm64
51+
3052
steps:
3153
- uses: actions/checkout@v1
3254
with:
@@ -36,7 +58,7 @@ jobs:
3658
run: cd test && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
3759

3860
- name: build
39-
run: cd test/build && make
61+
run: cd test/build && cmake --build "." --parallel
4062

4163
- name: run test
4264
run: cd test/build && ./bin/polyscope-test --gtest_catch_exceptions=0 backend=openGL_mock

.github/workflows/windows.yml

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-latest
1211
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
12+
13+
name: Build and Test (Windows) - ${{ matrix.os }}-${{ matrix.arch }}
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
include:
19+
- os: windows-latest
20+
arch: x64
21+
- os: windows-11-arm
22+
arch: arm64
23+
1324
steps:
1425
- uses: actions/checkout@v1
1526
with:
@@ -19,25 +30,36 @@ jobs:
1930
run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
2031

2132
- name: build
22-
run: cd test/build && cmake --build "."
33+
run: cd test/build && cmake --build "." --parallel
2334

2435
- name: run test
2536
run: cd test/build && ./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock
2637

2738
# windows shared builds: disabled for now
28-
#build_shared:
29-
#runs-on: windows-latest
30-
#if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
31-
#steps:
32-
#- uses: actions/checkout@v1
33-
#with:
34-
#submodules: true
35-
36-
#- name: configure
37-
#run: cd test && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
38-
39-
#- name: build
40-
#run: cd test/build && cmake --build "."
41-
42-
#- name: run test
43-
#run: cd test/build && ./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock
39+
build_shared:
40+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
41+
42+
name: Build Shared and Test (Windows) - ${{ matrix.os }}-${{ matrix.arch }}
43+
runs-on: ${{ matrix.os }}
44+
45+
strategy:
46+
matrix:
47+
include:
48+
- os: windows-latest
49+
arch: x64
50+
- os: windows-11-arm
51+
arch: arm64
52+
53+
steps:
54+
- uses: actions/checkout@v1
55+
with:
56+
submodules: true
57+
58+
- name: configure
59+
run: cd test && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
60+
61+
- name: build
62+
run: cd test/build && cmake --build "." --parallel
63+
64+
- name: run test
65+
run: cd test/build && ./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock

0 commit comments

Comments
 (0)