Skip to content

Commit 816967b

Browse files
committed
ci: rename workflow files
1 parent ec94499 commit 816967b

11 files changed

+363
-217
lines changed
File renamed without changes.

.github/workflows/amd64_docker.yml renamed to .github/workflows/amd64_docker_cmake.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ref: https://github.com/docker-library/official-images
2-
name: amd64 Docker
2+
name: amd64 Docker CMake
33

44
on: [push, pull_request, workflow_dispatch]
55

@@ -11,6 +11,7 @@ jobs:
1111
docker:
1212
strategy:
1313
matrix:
14+
platform: [amd64] # arm64 riscv64
1415
distro: [
1516
almalinux,
1617
alpine,
@@ -22,7 +23,7 @@ jobs:
2223
ubuntu
2324
]
2425
fail-fast: false
25-
name: amd64•${{matrix.distro}}
26+
name: ${{matrix.platform}}•${{matrix.distro}}•CMake
2627
runs-on: ubuntu-latest
2728
steps:
2829
- uses: actions/checkout@v5
@@ -31,24 +32,24 @@ jobs:
3132
docker info
3233
docker buildx ls
3334
- name: Build env image
34-
run: make --directory=ci amd64_${{matrix.distro}}_env
35-
- name: Build devel project
36-
run: make --directory=ci amd64_${{matrix.distro}}_devel
35+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_env
36+
- name: Build devel image
37+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_devel
3738
- name: Build project
38-
run: make --directory=ci amd64_${{matrix.distro}}_build
39+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_build
3940
- name: Test project
40-
run: make --directory=ci amd64_${{matrix.distro}}_test
41+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_test
4142

4243
- name: Build install env image
43-
run: make --directory=ci amd64_${{matrix.distro}}_install_env
44-
- name: Build install devel project
45-
run: make --directory=ci amd64_${{matrix.distro}}_install_devel
44+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_install_env
45+
- name: Build install devel image
46+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_install_devel
4647
- name: Build install project
47-
run: make --directory=ci amd64_${{matrix.distro}}_install_build
48+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_install_build
4849
- name: Test install project
49-
run: make --directory=ci amd64_${{matrix.distro}}_install_test
50+
run: make --directory=ci ${{matrix.platform}}_${{matrix.distro}}_install_test
5051

51-
amd64_docker:
52+
amd64_docker_cmake:
5253
runs-on: ubuntu-latest
5354
needs: docker
5455
steps:

.github/workflows/amd64_linux.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# ref: https://github.com/actions/runner-images
2+
name: amd64 Linux CMake
3+
4+
on: [push, pull_request, workflow_dispatch]
5+
6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
10+
# Building using the github runner environement directly.
11+
env:
12+
CCACHE_BASEDIR: ${{github.workspace}}
13+
CCACHE_DIR: ${{github.workspace}}/.ccache
14+
15+
jobs:
16+
native:
17+
strategy:
18+
matrix:
19+
cmake: [
20+
{name: "Make", generator: "Unix Makefiles", config: Release},
21+
{name: "Ninja", generator: "Ninja", config: Release},
22+
{name: "NinjaMulti", generator: "Ninja Multi-Config", config: Release},
23+
]
24+
python: [
25+
#{version: '3.9'},
26+
#{version: '3.10'},
27+
#{version: '3.11'},
28+
{version: '3.12'},
29+
{version: '3.13'},
30+
]
31+
fail-fast: false
32+
name: amd64•Linux•${{matrix.cmake.name}}•Py${{matrix.python.version}}
33+
runs-on: ubuntu-latest
34+
env:
35+
deps_src_key: amd64_linux_deps_src
36+
deps_build_key: amd64_linux_deps_build_${{matrix.cmake.name}}
37+
ccache_key: amd64_linux_ccache_${{matrix.cmake.name}}
38+
steps:
39+
- uses: actions/checkout@v5
40+
- name: Setup Python
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: ${{matrix.python.version}}
44+
- name: Check Python
45+
run: |
46+
python --version
47+
python -m platform
48+
- name: Install Dependencies
49+
run: |
50+
sudo apt-get update
51+
sudo apt install -y ninja-build ccache
52+
53+
# CONFIGURING CACHES
54+
- name: Cache CMake dependency source code
55+
uses: actions/cache@v4
56+
with:
57+
key: ${{env.deps_src_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
58+
path: ${{github.workspace}}/build/_deps/*-src
59+
- name: Cache CMake dependency build
60+
uses: actions/cache@v4
61+
with:
62+
key: ${{env.deps_build_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
63+
path: |
64+
${{github.workspace}}/build/_deps/*-build
65+
${{github.workspace}}/build/_deps/*-subbuild
66+
- name: Cache CCache
67+
uses: actions/cache@v4
68+
with:
69+
key: ${{env.ccache_key}}-${{github.sha}}
70+
restore-keys: |
71+
${{env.ccache_key}}-${{github.sha}}
72+
${{env.ccache_key}}
73+
path: ${{env.CCACHE_DIR}}
74+
75+
- name: Check CMake
76+
run: cmake --version
77+
- name: Configure
78+
run: >
79+
cmake -S. -Bbuild
80+
-G "${{matrix.cmake.generator}}"
81+
-DCMAKE_BUILD_TYPE=${{matrix.cmake.config}}
82+
-DCMAKE_INSTALL_PREFIX=install
83+
- name: Build
84+
run: >
85+
cmake --build build
86+
--config ${{matrix.cmake.config}}
87+
--target all
88+
-v -j2
89+
- name: Test
90+
run: >
91+
CTEST_OUTPUT_ON_FAILURE=1
92+
cmake --build build
93+
--config ${{matrix.cmake.config}}
94+
--target test
95+
-v
96+
- name: Install
97+
run: >
98+
cmake --build build
99+
--config ${{matrix.cmake.config}}
100+
--target install
101+
-v
102+
- name: CCache stats and cleanup
103+
run: |
104+
ccache --show-stats
105+
ccache --zero-stats
106+
107+
amd64_linux_cmake:
108+
runs-on: ubuntu-latest
109+
needs: native
110+
steps:
111+
- uses: actions/checkout@v5

.github/workflows/amd64_macos.yml renamed to .github/workflows/amd64_macos_cmake.yml

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ref: https://github.com/actions/runner-images
2-
name: amd64 MacOS
2+
name: amd64 MacOS CMake
33

44
on: [push, pull_request, workflow_dispatch]
55

@@ -8,6 +8,10 @@ concurrency:
88
cancel-in-progress: true
99

1010
# Building using the github runner environement directly.
11+
env:
12+
CCACHE_BASEDIR: ${{github.workspace}}
13+
CCACHE_DIR: ${{github.workspace}}/.ccache
14+
1115
jobs:
1216
native:
1317
strategy:
@@ -17,25 +21,56 @@ jobs:
1721
{name: "Make", generator: "Unix Makefiles", config: Release, build_target: all, test_target: test, install_target: install},
1822
]
1923
python: [
20-
{version: "3.9"},
21-
#{version: "3.10"},
22-
#{version: "3.11"},
23-
#{version: "3.12"},
24-
{version: "3.13"},
24+
#{version: '3.9'},
25+
#{version: '3.10'},
26+
{version: '3.11'},
27+
{version: '3.12'},
28+
#{version: '3.13'},
2529
]
2630
fail-fast: false
27-
name: MacOS•${{ matrix.cmake.name }}•Py${{ matrix.python.version }}
31+
name: amd64•MacOS•${{matrix.cmake.name}}•Py${{matrix.python.version}}
2832
runs-on: macos-15-intel
33+
env:
34+
deps_src_key: amd64_macos_deps_src
35+
deps_build_key: amd64_macos_deps_build_${{matrix.cmake.name}}
36+
ccache_key: amd64_macos_ccache_${{matrix.cmake.name}}
2937
steps:
3038
- uses: actions/checkout@v5
3139
- name: Setup Python
3240
uses: actions/setup-python@v6
3341
with:
34-
python-version: ${{ matrix.python.version }}
42+
python-version: ${{matrix.python.version}}
3543
- name: Update Path
3644
run: |
37-
echo "$HOME/Library/Python/${{ matrix.python.version }}/bin" >> $GITHUB_PATH
45+
echo "$HOME/Library/Python/${{matrix.python.version}}/bin" >> $GITHUB_PATH
3846
echo "$HOME/.local/bin" >> $GITHUB_PATH
47+
- name: Check Python
48+
run: python --version
49+
- name: Install Dependencies
50+
run: brew install ccache
51+
52+
# CONFIGURING CACHES
53+
- name: Cache CMake dependency source code
54+
uses: actions/cache@v4
55+
with:
56+
key: ${{env.deps_src_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
57+
path: ${{github.workspace}}/build/_deps/*-src
58+
- name: Cache CMake dependency build
59+
uses: actions/cache@v4
60+
with:
61+
key: ${{env.deps_build_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
62+
path: |
63+
${{github.workspace}}/build/_deps/*-build
64+
${{github.workspace}}/build/_deps/*-subbuild
65+
- name: Cache CCache
66+
uses: actions/cache@v4
67+
with:
68+
key: ${{env.ccache_key}}-${{github.sha}}
69+
restore-keys: |
70+
${{env.ccache_key}}-${{github.sha}}
71+
${{env.ccache_key}}
72+
path: ${{env.CCACHE_DIR}}
73+
3974
- name: Check CMake
4075
run: cmake --version
4176
- name: Configure
@@ -63,8 +98,12 @@ jobs:
6398
--config ${{matrix.cmake.config}}
6499
--target ${{matrix.cmake.install_target}}
65100
-v
101+
- name: CCache stats and cleanup
102+
run: |
103+
ccache --show-stats
104+
ccache --zero-stats
66105
67-
amd64_macos:
106+
amd64_macos_cmake:
68107
runs-on: ubuntu-latest
69108
needs: native
70109
steps:

0 commit comments

Comments
 (0)