Skip to content

Commit 2a531b5

Browse files
committed
ci: cleanup workflows
1 parent 8ad77ac commit 2a531b5

34 files changed

+515
-257
lines changed

.github/workflows/aarch64_toolchain.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ name: aarch64 Toolchain
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
# Building using the github runner environement directly.
711
jobs:
812
aarch64:
913
strategy:
1014
matrix:
1115
targets: [aarch64, aarch64be]
1216
fail-fast: false
13-
name: LinuxToolchain ${{ matrix.targets }}
17+
name: LinuxToolchain ${{matrix.targets}}
1418
runs-on: ubuntu-latest
1519
steps:
1620
- uses: actions/checkout@v4
1721
- name: Build env stage
18-
run: make --directory=cmake toolchain_${{ matrix.targets }}_env
22+
run: make --directory=cmake toolchain_${{matrix.targets}}_env
1923
- name: Build devel stage
20-
run: make --directory=cmake toolchain_${{ matrix.targets }}_devel
24+
run: make --directory=cmake toolchain_${{matrix.targets}}_devel
2125
- name: Build build stage
22-
run: make --directory=cmake toolchain_${{ matrix.targets }}_build
26+
run: make --directory=cmake toolchain_${{matrix.targets}}_build
2327
- name: Build Test stage
24-
run: make --directory=cmake toolchain_${{ matrix.targets }}_test
28+
run: make --directory=cmake toolchain_${{matrix.targets}}_test

.github/workflows/amd64_cmake_glop_cpp.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
# ref: https://github.com/actions/runner-images
12
name: amd64 CMake Glop C++
23

34
on: [push, pull_request, workflow_dispatch]
45

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
510
jobs:
611
docker:
7-
name: DockerCMakeGlop
12+
name: amd64•DockerCMakeGlop
813
runs-on: ubuntu-latest
914
steps:
1015
- uses: actions/checkout@v4
@@ -31,6 +36,7 @@ jobs:
3136
matrix:
3237
cmake: [
3338
{
39+
platform: amd64,
3440
runner: "ubuntu-latest",
3541
generator: "Unix Makefiles",
3642
config: Release,
@@ -39,6 +45,7 @@ jobs:
3945
install_target: install
4046
},
4147
{
48+
platform: amd64,
4249
runner: "macos-13", # last macos intel based runner
4350
generator: "Xcode",
4451
config: Release,
@@ -47,6 +54,7 @@ jobs:
4754
install_target: install
4855
},
4956
{
57+
platform: arm64,
5058
runner: "macos-latest", # macos arm64 based runner
5159
generator: "Xcode",
5260
config: Release,
@@ -55,6 +63,7 @@ jobs:
5563
install_target: install
5664
},
5765
{
66+
platform: amd64,
5867
runner: "windows-latest",
5968
generator: "Visual Studio 17 2022",
6069
config: Release,
@@ -64,29 +73,29 @@ jobs:
6473
},
6574
]
6675
fail-fast: false
67-
name: ${{ matrix.cmake.runner }} • CMakeGlop
68-
runs-on: ${{ matrix.cmake.runner }}
76+
name: ${{matrix.cmake.platform}}•${{matrix.cmake.runner}}•CMakeGlop
77+
runs-on: ${{matrix.cmake.runner}}
6978
steps:
7079
- uses: actions/checkout@v4
7180
- name: Check cmake
7281
run: cmake --version
7382
- name: Configure
7483
run: >
7584
cmake -S. -Bbuild
76-
-G "${{ matrix.cmake.generator }}"
77-
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.config }}
85+
-G "${{matrix.cmake.generator}}"
86+
-DCMAKE_BUILD_TYPE=${{matrix.cmake.config}}
7887
-DBUILD_DEPS=ON
7988
-DBUILD_CXX=OFF -DBUILD_GLOP=ON
8089
-DCMAKE_INSTALL_PREFIX=install
8190
- name: Build
8291
run: >
8392
cmake --build build
84-
--config ${{ matrix.cmake.config }}
85-
--target ${{ matrix.cmake.build_target }}
93+
--config ${{matrix.cmake.config}}
94+
--target ${{matrix.cmake.build_target}}
8695
-v -j2
8796
- name: Install
8897
run: >
8998
cmake --build build
90-
--config ${{ matrix.cmake.config }}
91-
--target ${{ matrix.cmake.install_target }}
99+
--config ${{matrix.cmake.config}}
100+
--target ${{matrix.cmake.install_target}}
92101
-v

.github/workflows/amd64_docker_bazel.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ name: amd64 Docker Bazel
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
jobs:
711
bazel:
812
strategy:
913
matrix:
10-
platform: [amd64] # arm64 riscv64
1114
distro: [
1215
almalinux,
1316
# alpine,
@@ -19,7 +22,7 @@ jobs:
1922
ubuntu
2023
]
2124
fail-fast: false
22-
name: ${{ matrix.platform }} • ${{ matrix.distro }} • Bazel
25+
name: amd64•${{matrix.distro}}•Bazel
2326
runs-on: ubuntu-latest
2427
steps:
2528
- uses: actions/checkout@v4
@@ -28,10 +31,10 @@ jobs:
2831
docker info
2932
docker buildx ls
3033
- name: Build env image
31-
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_env
34+
run: make --directory=bazel amd64_${{matrix.distro}}_env
3235
- name: Build devel image
33-
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_devel
36+
run: make --directory=bazel amd64_${{matrix.distro}}_devel
3437
- name: Build project
35-
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_build
38+
run: make --directory=bazel amd64_${{matrix.distro}}_build
3639
- name: Test project
37-
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_test
40+
run: make --directory=bazel amd64_${{matrix.distro}}_test

.github/workflows/amd64_docker_cmake.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,37 @@ name: amd64 Docker CMake
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
jobs:
711
cmake:
812
strategy:
913
matrix:
1014
distro: [almalinux, alpine, archlinux, debian, fedora, opensuse, rockylinux, ubuntu]
1115
lang: [cpp, python, dotnet, java]
1216
fail-fast: false
13-
name: ${{ matrix.distro }} • CMake${{ matrix.lang }}
17+
name: amd64•${{matrix.distro}}•CMake${{matrix.lang}}
1418
runs-on: ubuntu-latest
1519
steps:
1620
- uses: actions/checkout@v4
1721
- name: Build base image
18-
run: make --directory=cmake ${{ matrix.distro }}_base
22+
run: make --directory=cmake amd64_${{matrix.distro}}_base
1923
- name: Build env image
20-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_env
24+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_env
2125
- name: Build devel image
22-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_devel
26+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_devel
2327
- name: Build project
24-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_build
28+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_build
2529
- name: Test project
26-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_test
30+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_test
2731

2832
- name: Build install env image
29-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_install_env
33+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_install_env
3034
- name: Build install devel image
31-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_install_devel
35+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_install_devel
3236
- name: Build install project
33-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_install_build
37+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_install_build
3438
- name: Test install project
35-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}_install_test
39+
run: make --directory=cmake amd64_${{matrix.distro}}_${{matrix.lang}}_install_test

.github/workflows/amd64_freebsd_cmake.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: amd64 FreeBSD CMake
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
concurrency:
6+
group: ${{github.workflow}}-${{github.ref}}
7+
cancel-in-progress: true
8+
59
# Only macos-12 runner provide virtualisation with vagrant/virtualbox installed.
610
# ref: https://github.com/actions/runner-images/tree/main/images/macos
711
# ref: https://app.vagrantup.com/generic/boxes/freebsd13
@@ -20,7 +24,7 @@ jobs:
2024
- distro: freebsd
2125
lang: java
2226
allow_failure: true
23-
name: FreeBSDCMake${{ matrix.lang }}
27+
name: amd64•FreeBSDCMake${{matrix.lang}}
2428
runs-on: macos-12
2529
steps:
2630
- uses: actions/checkout@v4
@@ -29,4 +33,4 @@ jobs:
2933
- name: VirtualBox version
3034
run: virtualbox -h
3135
- name: Build
32-
run: make --directory=cmake ${{ matrix.distro }}_${{ matrix.lang }}
36+
run: make --directory=cmake ${{matrix.distro}}_${{matrix.lang}}

.github/workflows/amd64_linux_bazel.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: amd64 Linux Bazel
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
# Building using the github runner environement directly.
711
jobs:
812
native:
@@ -15,7 +19,7 @@ jobs:
1519
#{version: '3.13'},
1620
]
1721
fail-fast: false
18-
name: LinuxBazelPython-${{ matrix.python.version }}
22+
name: amd64•LinuxBazelPython-${{matrix.python.version}}
1923
runs-on: ubuntu-latest
2024
env:
2125
CC: gcc-12
@@ -29,7 +33,7 @@ jobs:
2933
- name: Setup Python
3034
uses: actions/setup-python@v5
3135
with:
32-
python-version: ${{ matrix.python.version }}
36+
python-version: ${{matrix.python.version}}
3337
- name: Check Python
3438
run: python --version
3539
- name: Install Bazel
@@ -43,11 +47,11 @@ jobs:
4347
run: bazel version
4448
- name: Change Python in .bazelrc
4549
run: |
46-
sed -i -e 's/\(python_version=\)3.[0-9]\+/\1${{ matrix.python.version }}/g' .bazelrc
50+
sed -i -e 's/\(python_version=\)3.[0-9]\+/\1${{matrix.python.version}}/g' .bazelrc
4751
cat .bazelrc
4852
- name: Change Python in .bazelrc
4953
run: |
50-
sed -i -e 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "${{ matrix.python.version }}"/g' MODULE.bazel
54+
sed -i -e 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "${{matrix.python.version}}"/g' MODULE.bazel
5155
cat MODULE.bazel
5256
- name: Build
5357
run: >
@@ -61,3 +65,9 @@ jobs:
6165
-c opt
6266
--test_output=errors
6367
//ortools/... //examples/...
68+
69+
amd64_linux_bazel:
70+
runs-on: ubuntu-latest
71+
needs: native
72+
steps:
73+
- uses: actions/checkout@v4

.github/workflows/amd64_linux_cmake_coinor_off.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: amd64 Linux CMake CoinOR OFF
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
# Building using the github runner environement directly.
711
jobs:
812
native:
@@ -15,7 +19,7 @@ jobs:
1519
{language: 'Python', args: '-DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF -DBUILD_PYTHON=ON'},
1620
]
1721
fail-fast: false
18-
name: LinuxCMake${{ matrix.cmake.language }} • CoinOR OFF
22+
name: amd64•LinuxCMake${{matrix.cmake.language}}•CoinOR=OFF
1923
runs-on: ubuntu-latest
2024
steps:
2125
- uses: actions/checkout@v4
@@ -48,7 +52,7 @@ jobs:
4852
-DCMAKE_BUILD_TYPE=Release
4953
-DBUILD_DEPS=ON
5054
-DUSE_COINOR=OFF
51-
${{ matrix.cmake.args }}
55+
${{matrix.cmake.args}}
5256
- name: Build
5357
run: >
5458
cmake --build build

.github/workflows/amd64_linux_cmake_cpp.yml

+24-14
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,60 @@ name: amd64 Linux CMake C++
33

44
on: [push, pull_request, workflow_dispatch]
55

6+
concurrency:
7+
group: ${{github.workflow}}-${{github.ref}}
8+
cancel-in-progress: true
9+
610
# Building using the github runner environement directly.
711
jobs:
812
native:
913
strategy:
10-
matrix:
11-
cmake: [
12-
{generator: "Unix Makefiles", config: "Release"},
13-
{generator: "Ninja", config: "Release"},
14-
{generator: "Ninja Multi-Config", config: "Release"},
15-
]
16-
fail-fast: false
17-
name: Linux${{ matrix.cmake.generator }} • C++
14+
matrix:
15+
cmake: [
16+
{name: "Make", generator: "Unix Makefiles", config: Release},
17+
{name: "Ninja", generator: "Ninja", config: Release},
18+
{name: "Ninja Multi", generator: "Ninja Multi-Config", config: Release},
19+
]
20+
fail-fast: false
21+
name: amd64•Linux•CMake(${{matrix.cmake.name}})•C++
1822
runs-on: ubuntu-latest
1923
steps:
2024
- uses: actions/checkout@v4
2125
- name: Install Ninja
2226
run: |
2327
sudo apt-get update
2428
sudo apt-get install ninja-build
25-
- name: Check cmake
29+
- name: Check CMake
2630
run: cmake --version
2731
- name: Configure
2832
run: >
2933
cmake -S. -Bbuild
30-
-G "${{ matrix.cmake.generator }}"
31-
-DCMAKE_BUILD_TYPE="$BUILD_TYPE"
34+
-G "${{matrix.cmake.generator}}"
35+
-DCMAKE_BUILD_TYPE=${{matrix.cmake.config}}
3236
-DBUILD_DEPS=ON
3337
-DCMAKE_INSTALL_PREFIX=install
3438
- name: Build
3539
run: >
3640
cmake --build build
37-
--config ${{ matrix.cmake.config }}
41+
--config ${{matrix.cmake.config}}
3842
--target all
3943
-v -j2
4044
- name: Test
4145
run: >
4246
CTEST_OUTPUT_ON_FAILURE=1
4347
cmake --build build
44-
--config ${{ matrix.cmake.config }}
48+
--config ${{matrix.cmake.config}}
4549
--target test
4650
-v
4751
- name: Install
4852
run: >
4953
cmake --build build
50-
--config ${{ matrix.cmake.config }}
54+
--config ${{matrix.cmake.config}}
5155
--target install
5256
-v
57+
58+
amd64_linux_cmake_cpp:
59+
runs-on: ubuntu-latest
60+
needs: native
61+
steps:
62+
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)