Skip to content

Commit 06019b3

Browse files
authored
GHA: make use of the new ubuntu-22.04-arm runner.
2 parents ba33498 + 416f299 commit 06019b3

File tree

3 files changed

+25
-46
lines changed

3 files changed

+25
-46
lines changed

.github/workflows/buildThirdPartyLibrary.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ jobs:
3939
os: ubuntu-22.04
4040
build_type: Release
4141
- name: 'Linux (ARM)'
42-
os: ubuntu-22.04
43-
arch: arm
44-
context: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
42+
os: ubuntu-22.04-arm
4543
build_type: Release
4644
- name: 'macOS (Intel)'
4745
os: macos-14
@@ -58,17 +56,12 @@ jobs:
5856
steps:
5957
- name: Check out libOpenCOR
6058
uses: actions/checkout@v4
61-
- name: Install ARM compiler
62-
if: ${{ matrix.arch == 'arm' }}
63-
run: |
64-
sudo apt update
65-
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
6659
- name: Install CMake and Ninja
6760
uses: lukka/get-cmake@latest
6861
- name: Install buildcache
69-
uses: cscouto/buildcache-action@v1
62+
uses: opencor/buildcache-action@v1
7063
with:
71-
cache_key: libraries-${{ matrix.os }}-${{ matrix.shared_libs }}
64+
cache_key: ${{ inputs.third_party_library_name }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.build_type }}
7265
- name: Configure MSVC (to build an Intel-based version of llvm-tblgen and clang-tblgen; only when building LLVM+Clang on Windows ARM)
7366
if: ${{ (inputs.third_party_library_name == 'LLVMClang') && (runner.os == 'Windows') && (matrix.arch == 'amd64_arm64') }}
7467
uses: ilammy/msvc-dev-cmd@v1
@@ -92,13 +85,13 @@ jobs:
9285
run: |
9386
mkdir build
9487
cd build
95-
${{ matrix.context }} cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=${{ matrix.build_type }} -DONLY_BUILD_THIRD_PARTY_LIBRARIES=ON -DPREBUILT_LLVMCLANG=OFF ${{ env.DLLVMCLANG_LLVM_TABLEGEN }} ${{ env.DLLVMCLANG_CLANG_TABLEGEN }} ..
88+
cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=${{ matrix.build_type }} -DONLY_BUILD_THIRD_PARTY_LIBRARIES=ON -DPREBUILT_LLVMCLANG=OFF ${{ env.DLLVMCLANG_LLVM_TABLEGEN }} ${{ env.DLLVMCLANG_CLANG_TABLEGEN }} ..
9689
- name: Configure libOpenCOR (only when NOT building LLVM+Clang)
9790
if: ${{ inputs.third_party_library_name != 'LLVMClang' }}
9891
run: |
9992
mkdir build
10093
cd build
101-
${{ matrix.context }} cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=${{ matrix.build_type }} -DONLY_BUILD_THIRD_PARTY_LIBRARIES=ON -DPREBUILT_${{ inputs.third_party_library_name }}=OFF ..
94+
cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=${{ matrix.build_type }} -DONLY_BUILD_THIRD_PARTY_LIBRARIES=ON -DPREBUILT_${{ inputs.third_party_library_name }}=OFF ..
10295
- name: Upload library artifact
10396
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
10497
uses: actions/upload-artifact@v4
@@ -120,7 +113,7 @@ jobs:
120113
- name: Install CMake and Ninja
121114
uses: lukka/get-cmake@latest
122115
- name: Install buildcache
123-
uses: cscouto/buildcache-action@v1
116+
uses: opencor/buildcache-action@v1
124117
with:
125118
cache_key: webassembly
126119
- name: Install Emscripten

.github/workflows/cd.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@ jobs:
3838
os: ubuntu-22.04
3939
shared_libs: ON
4040
- name: 'Linux static library (ARM)'
41-
os: ubuntu-22.04
42-
arch: arm
41+
os: ubuntu-22.04-arm
4342
shared_libs: OFF
44-
context: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
4543
- name: 'Linux shared library (ARM)'
46-
os: ubuntu-22.04
47-
arch: arm
44+
os: ubuntu-22.04-arm
4845
shared_libs: ON
49-
context: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
5046
- name: 'macOS static library (Intel)'
5147
os: macos-14
48+
arch: Intel # Only used for buildcache's cache key.
5249
shared_libs: OFF
5350
target_arch: " -DTARGET_ARCHITECTURE=Intel"
5451
- name: 'macOS shared library (Intel)'
5552
os: macos-14
53+
arch: Intel # Only used for buildcache's cache key.
5654
shared_libs: ON
5755
target_arch: " -DTARGET_ARCHITECTURE=Intel"
5856
- name: 'macOS static library (ARM)'
5957
os: macos-14
58+
arch: ARM # Only used for buildcache's cache key.
6059
shared_libs: OFF
6160
- name: 'macOS shared library (ARM)'
6261
os: macos-14
62+
arch: ARM # Only used for buildcache's cache key.
6363
shared_libs: ON
6464
env:
6565
BUILDCACHE_ACCURACY: STRICT
@@ -69,17 +69,12 @@ jobs:
6969
steps:
7070
- name: Check out libOpenCOR
7171
uses: actions/checkout@v4
72-
- name: Install ARM compiler
73-
if: ${{ matrix.arch == 'arm' }}
74-
run: |
75-
sudo apt update
76-
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
7772
- name: Install CMake and Ninja
7873
uses: lukka/get-cmake@latest
7974
- name: Install buildcache
80-
uses: cscouto/buildcache-action@v1
75+
uses: opencor/buildcache-action@v1
8176
with:
82-
cache_key: libraries-${{ matrix.os }}-${{ matrix.shared_libs }}
77+
cache_key: cd-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.shared_libs }}
8378
- name: Configure MSVC
8479
if: ${{ runner.os == 'Windows' }}
8580
uses: ilammy/msvc-dev-cmd@v1
@@ -89,7 +84,7 @@ jobs:
8984
run: |
9085
mkdir build
9186
cd build
92-
${{ matrix.context }} cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=Release -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=${{ matrix.shared_libs }} -DUNIT_TESTING=OFF ..
87+
cmake -G Ninja ${{ matrix.target_arch }} -DBUILD_TYPE=Release -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=${{ matrix.shared_libs }} -DUNIT_TESTING=OFF ..
9388
- name: Build libOpenCOR
9489
run: |
9590
cd build
@@ -175,9 +170,9 @@ jobs:
175170
- name: Install CMake and Ninja
176171
uses: lukka/get-cmake@latest
177172
- name: Install buildcache
178-
uses: cscouto/buildcache-action@v1
173+
uses: opencor/buildcache-action@v1
179174
with:
180-
cache_key: webassembly
175+
cache_key: cd-webassembly
181176
- name: Install Emscripten
182177
run: brew install emscripten
183178
- name: Configure libOpenCOR

.github/workflows/ci.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ jobs:
107107
unit_testing: ON
108108
target: unit_testing
109109
install_uninstall_and_package: ON
110-
- name: 'Linux static library (ARM) (no tests)'
111-
os: ubuntu-22.04
112-
arch: arm
110+
- name: 'Linux static library (ARM)'
111+
os: ubuntu-22.04-arm
113112
build_type: Release
114113
code_analysis: OFF
115114
code_coverage: OFF
@@ -120,13 +119,11 @@ jobs:
120119
python_bindings: OFF
121120
python_unit_testing: OFF
122121
shared_libs: OFF
123-
unit_testing: OFF
122+
unit_testing: ON
124123
target: unit_testing
125124
install_uninstall_and_package: ON
126-
context: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
127-
- name: 'Linux shared library (ARM) (no tests)'
128-
os: ubuntu-22.04
129-
arch: arm
125+
- name: 'Linux shared library (ARM)'
126+
os: ubuntu-22.04-arm
130127
build_type: Release
131128
code_analysis: OFF
132129
code_coverage: OFF
@@ -137,10 +134,9 @@ jobs:
137134
python_bindings: OFF
138135
python_unit_testing: OFF
139136
shared_libs: ON
140-
unit_testing: OFF
137+
unit_testing: ON
141138
target: unit_testing
142139
install_uninstall_and_package: ON
143-
context: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
144140
- name: 'macOS static library (Intel)'
145141
os: macos-14
146142
build_type: Release
@@ -373,21 +369,16 @@ jobs:
373369
steps:
374370
- name: Check out libOpenCOR
375371
uses: actions/checkout@v4
376-
- name: Install ARM compiler
377-
if: ${{ matrix.arch == 'arm' }}
378-
run: |
379-
sudo apt update
380-
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
381372
- name: Install Python
382373
uses: actions/setup-python@v5
383374
with:
384375
python-version: '3.13'
385376
- name: Install CMake and Ninja
386377
uses: lukka/get-cmake@latest
387378
- name: Install buildcache
388-
uses: cscouto/buildcache-action@v1
379+
uses: opencor/buildcache-action@v1
389380
with:
390-
cache_key: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.code_analysis }}-${{ matrix.code_coverage }}-${{ matrix.documentation }}-${{ matrix.javascript_bindings }}-${{ matrix.javascript_unit_testing }}-${{ matrix.memory_checks }}-${{ matrix.python_bindings }}-${{ matrix.python_unit_testing }}-${{ matrix.shared_libs }}-${{ matrix.unit_testing }}-${{ matrix.target }}
381+
cache_key: ci-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.code_analysis }}-${{ matrix.code_coverage }}-${{ matrix.documentation }}-${{ matrix.javascript_bindings }}-${{ matrix.javascript_unit_testing }}-${{ matrix.memory_checks }}-${{ matrix.python_bindings }}-${{ matrix.python_unit_testing }}-${{ matrix.shared_libs }}-${{ matrix.unit_testing }}-${{ matrix.target }}
391382
- name: Configure MSVC
392383
if: ${{ runner.os == 'Windows' }}
393384
uses: ilammy/msvc-dev-cmd@v1

0 commit comments

Comments
 (0)