@@ -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
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
0 commit comments