Skip to content

Commit 59329f4

Browse files
palemieuxaous72
andauthored
Add Linux-ARM32 Build (#263)
* Add Linux-ARM32 Build * Make build_arm32 a manual CI job Added workflow_dispatch input options for manual job selection and log level configuration. Make build_arm32 build an optional build --------- Authored by Pierre Lemieux <pal@sandflow.com> Co-authored-by: Aous Naman <aous@unsw.edu.au>
1 parent 0ec2184 commit 59329f4

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ccp-workflow.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ on:
55
push:
66
pull_request:
77
types: [opened, reopened]
8+
workflow_dispatch:
9+
inputs:
10+
job_to_run:
11+
description: 'Select the job to run manually'
12+
type: 'choice'
13+
options:
14+
- 'build_arm32'
15+
default: 'build_arm32'
16+
log_level:
17+
description: 'Log level'
18+
required: false
19+
default: 'info'
820

921

1022
jobs:
@@ -202,3 +214,22 @@ jobs:
202214
run: ctest --output-on-failure -C Release
203215
working-directory: build
204216

217+
build_arm32:
218+
name: Linux-ARM32 Build
219+
runs-on: ubuntu-latest
220+
if: ${{ github.event.inputs.job_to_run == 'build_arm32' }}
221+
steps:
222+
- uses: actions/checkout@v5
223+
- uses: uraimo/run-on-arch-action@v2
224+
with:
225+
arch: armv7
226+
distro: ubuntu22.04
227+
githubToken: ${{ github.token }}
228+
install: |
229+
apt-get update -q -y
230+
apt-get install -q -y cmake make g++ libtiff-dev python3
231+
run: |
232+
cd build
233+
cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_BUILD_STREAM_EXPAND=ON -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON ..
234+
make
235+
ctest --output-on-failure

0 commit comments

Comments
 (0)