Skip to content

Commit 1e37465

Browse files
Add ARM Linux GitHub workflow (#178)
* add ubuntu-24.04-arm release github workflow * add ubuntu-24.04-arm debug github workflow
1 parent d3c03a9 commit 1e37465

File tree

2 files changed

+709
-0
lines changed

2 files changed

+709
-0
lines changed
Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
name: Ubuntu-ARM-Debug
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
push:
9+
paths-ignore:
10+
- 'README.md'
11+
- 'doc/**'
12+
pull_request:
13+
paths-ignore:
14+
- 'README.md'
15+
- 'doc/**'
16+
17+
env:
18+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
19+
BUILD_TYPE: Debug
20+
21+
jobs:
22+
build:
23+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
24+
# You can convert this to a matrix build if you need cross-platform coverage.
25+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
26+
runs-on: ubuntu-24.04-arm
27+
28+
steps:
29+
30+
- name: install ilmbase
31+
run: sudo apt-get -y install libilmbase-dev
32+
33+
- name: install openexr
34+
run: sudo apt-get -y install libopenexr-dev
35+
36+
- uses: actions/checkout@v4
37+
38+
- name: Configure CMake
39+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
40+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
41+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
42+
43+
- name: Build
44+
# Build your program with the given configuration
45+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
46+
47+
test-openexr2:
48+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
49+
# You can convert this to a matrix build if you need cross-platform coverage.
50+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
51+
runs-on: ubuntu-24.04-arm
52+
53+
steps:
54+
55+
- name: remove ilmbase
56+
run: sudo apt-get --purge remove libilmbase-dev -y
57+
58+
- name: remove openexr
59+
run: sudo apt-get --purge remove libopenexr-dev -y
60+
61+
- name: install openexr dependency - zlib
62+
run: sudo apt-get -y install zlib1g-dev
63+
64+
- name: install CTL dependency - openexr/ilmbase v2.5
65+
run: |
66+
cd ..
67+
git clone https://github.com/AcademySoftwareFoundation/openexr.git &&
68+
cd openexr &&
69+
git checkout RB-2.5 &&
70+
mkdir build &&
71+
cd build &&
72+
cmake .. &&
73+
make &&
74+
sudo make install
75+
76+
- name: install aces_container
77+
run: |
78+
cd ..
79+
git clone https://github.com/ampas/aces_container.git &&
80+
cmake -S aces_container -B aces_container/build -DCMAKE_CXX_FLAGS="-Wno-c++11-narrowing" &&
81+
cmake --build aces_container/build &&
82+
sudo cmake --install aces_container/build
83+
84+
- name: install pkg-config to help find aces_container
85+
run: |
86+
sudo apt-get -y install pkg-config
87+
88+
- uses: actions/checkout@v4
89+
90+
- name: Configure CMake
91+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
92+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
93+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
94+
95+
- name: Build
96+
# Build your program with the given configuration
97+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
98+
99+
- name: Test
100+
working-directory: ${{github.workspace}}/build
101+
run: ctest -V --output-on-failure
102+
103+
test-openexr3:
104+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
105+
# You can convert this to a matrix build if you need cross-platform coverage.
106+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
107+
runs-on: ubuntu-24.04-arm
108+
109+
steps:
110+
111+
- name: remove ilmbase
112+
run: sudo apt-get --purge remove libilmbase-dev -y
113+
114+
- name: remove openexr
115+
run: sudo apt-get --purge remove libopenexr-dev -y
116+
117+
- name: install dependencies - imath
118+
run: |
119+
cd ..
120+
git clone https://github.com/AcademySoftwareFoundation/Imath.git &&
121+
cd Imath &&
122+
mkdir build &&
123+
cd build &&
124+
cmake .. &&
125+
make &&
126+
sudo make install
127+
128+
- name: install dependencies - zlib
129+
run: sudo apt-get -y install zlib1g-dev
130+
131+
- name: install dependencies - openexr v3.1
132+
run: |
133+
cd ..
134+
git clone https://github.com/AcademySoftwareFoundation/openexr.git &&
135+
cd openexr &&
136+
git checkout RB-3.1 &&
137+
mkdir build &&
138+
cd build &&
139+
cmake .. -DBUILD_TESTING=OFF -DOPENEXR_BUILD_TOOLS=OFF -DOPENEXR_INSTALL_EXAMPLES=OFF &&
140+
make &&
141+
sudo make install
142+
143+
- name: install aces_container
144+
run: |
145+
cd ..
146+
git clone https://github.com/ampas/aces_container.git &&
147+
cmake -S aces_container -B aces_container/build -DCMAKE_CXX_FLAGS="-Wno-c++11-narrowing" &&
148+
cmake --build aces_container/build &&
149+
sudo cmake --install aces_container/build
150+
151+
- name: install pkg-config to help find aces_container
152+
run: |
153+
sudo apt-get -y install pkg-config
154+
155+
- uses: actions/checkout@v4
156+
157+
- name: Configure CMake
158+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
159+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
160+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
161+
162+
- name: Build
163+
# Build your program with the given configuration
164+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
165+
166+
- name: Test
167+
working-directory: ${{github.workspace}}/build
168+
run: ctest -V --output-on-failure
169+
170+
valgrind-openexr2:
171+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
172+
# You can convert this to a matrix build if you need cross-platform coverage.
173+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
174+
runs-on: ubuntu-24.04-arm
175+
176+
steps:
177+
- name: run apt-get update
178+
run: sudo apt-get -y update
179+
180+
- name: install test tool - valgrind
181+
run: sudo apt-get -y install valgrind
182+
183+
- name: remove ilmbase
184+
run: sudo apt-get --purge remove libilmbase-dev -y
185+
186+
- name: remove openexr
187+
run: sudo apt-get --purge remove libopenexr-dev -y
188+
189+
- name: install libtiff
190+
run: sudo apt-get -y install libtiff-dev
191+
192+
- name: install openexr dependency - zlib
193+
run: sudo apt-get -y install zlib1g-dev
194+
195+
- name: install CTL dependency - openexr/ilmbase v2.5
196+
run: |
197+
cd ..
198+
git clone https://github.com/AcademySoftwareFoundation/openexr.git &&
199+
cd openexr &&
200+
git checkout RB-2.5 &&
201+
mkdir build &&
202+
cd build &&
203+
cmake .. &&
204+
make &&
205+
sudo make install
206+
207+
- name: install aces_container
208+
run: |
209+
cd ..
210+
git clone https://github.com/ampas/aces_container.git &&
211+
cmake -S aces_container -B aces_container/build -DCMAKE_CXX_FLAGS="-Wno-c++11-narrowing" &&
212+
cmake --build aces_container/build &&
213+
sudo cmake --install aces_container/build
214+
215+
- name: install pkg-config to help find aces_container
216+
run: |
217+
sudo apt-get -y install pkg-config
218+
219+
- uses: actions/checkout@v4
220+
221+
- name: Configure CMake
222+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
223+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
224+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
225+
226+
- name: Build
227+
# Build your program with the given configuration
228+
run: |
229+
cd ${{ github.workspace }}
230+
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
231+
232+
- name: Run Valgrind on unit tests
233+
working-directory: ${{github.workspace}}/build
234+
# Run valgrind using a bash script
235+
run: pwd && ls && bash ../resources/test/scripts/run_valgrind.sh
236+
237+
- name: Run Valgrind on aces container unit tests
238+
working-directory: ${{github.workspace}}/build
239+
# Run valgrind using a bash script
240+
run: pwd && ls && bash ../resources/test/scripts/run_valgrind_aces_container.sh
241+
242+
valgrind-openexr3:
243+
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
244+
# You can convert this to a matrix build if you need cross-platform coverage.
245+
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
246+
runs-on: ubuntu-24.04-arm
247+
248+
steps:
249+
- name: run apt-get update
250+
run: sudo apt-get -y update
251+
252+
- name: install test tool - valgrind
253+
run: sudo apt-get -y install valgrind
254+
255+
- name: remove ilmbase
256+
run: sudo apt-get --purge remove libilmbase-dev -y
257+
258+
- name: remove openexr
259+
run: sudo apt-get --purge remove libopenexr-dev -y
260+
261+
- name: install libtiff
262+
run: sudo apt-get -y install libtiff-dev
263+
264+
- name: install openexr dependency - zlib
265+
run: sudo apt-get -y install zlib1g-dev
266+
267+
- name: install openexr + CTL dependency - imath
268+
run: |
269+
cd ..
270+
git clone https://github.com/AcademySoftwareFoundation/Imath.git &&
271+
cd Imath &&
272+
mkdir build &&
273+
cd build &&
274+
cmake .. &&
275+
make &&
276+
sudo make install
277+
278+
- name: install CTL dependency - openexr v3.1
279+
run: |
280+
cd ..
281+
sudo apt-get -y install zlib1g-dev &&
282+
git clone https://github.com/AcademySoftwareFoundation/openexr.git &&
283+
cd openexr &&
284+
git checkout RB-3.1 &&
285+
mkdir build &&
286+
cd build &&
287+
cmake .. -DBUILD_TESTING=OFF -DOPENEXR_BUILD_TOOLS=OFF -DOPENEXR_INSTALL_EXAMPLES=OFF &&
288+
make &&
289+
sudo make install
290+
291+
- name: install aces_container
292+
run: |
293+
cd ..
294+
git clone https://github.com/ampas/aces_container.git &&
295+
cmake -S aces_container -B aces_container/build -DCMAKE_CXX_FLAGS="-Wno-c++11-narrowing" &&
296+
cmake --build aces_container/build &&
297+
sudo cmake --install aces_container/build
298+
299+
- name: install pkg-config to help find aces_container
300+
run: |
301+
sudo apt-get -y install pkg-config
302+
303+
- uses: actions/checkout@v4
304+
305+
- name: Configure CMake
306+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
307+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
308+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
309+
310+
- name: Build
311+
# Build your program with the given configuration
312+
run: |
313+
cd ${{ github.workspace }}
314+
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
315+
316+
- name: Run Valgrind on unit tests
317+
working-directory: ${{github.workspace}}/build
318+
# Run valgrind using a bash script
319+
run: pwd && ls && bash ../resources/test/scripts/run_valgrind.sh
320+
321+
- name: Run Valgrind on aces container unit tests
322+
working-directory: ${{github.workspace}}/build
323+
# Run valgrind using a bash script
324+
run: pwd && ls && bash ../resources/test/scripts/run_valgrind_aces_container.sh
325+
326+

0 commit comments

Comments
 (0)