Skip to content

Commit 7b578cf

Browse files
committed
Add arm64 runner
1 parent 7ef9f77 commit 7b578cf

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/build_test.yaml

+64
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,70 @@ on:
88
- main
99

1010
jobs:
11+
build-ubuntu-arm64-clang:
12+
name: Ubuntu arm64 Clang
13+
runs-on: ubuntu-24.04-arm
14+
steps:
15+
- name: Git checkout
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: 'true'
19+
20+
- name: Test ImageMagick 1
21+
run: |
22+
convert --help
23+
24+
- name: Test ImageMagick
25+
run: |
26+
magick convert --help 2
27+
28+
- name: Build release
29+
run: |
30+
export CXX=clang++
31+
mkdir build_rel
32+
cd build_rel
33+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
34+
make install package -j4
35+
36+
- name: Build debug
37+
run: |
38+
export CXX=clang++
39+
mkdir build_dbg
40+
cd build_dbg
41+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
42+
make -j4
43+
44+
- name: Upload binaries
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: astcenc-linux-arm64
48+
path: |
49+
build_rel/*.zip
50+
build_rel/*.zip.sha256
51+
52+
- name: Setup Python
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: '3.11'
56+
57+
- name: Get Python modules
58+
run: |
59+
python -m pip install --upgrade pip
60+
pip install numpy Pillow
61+
62+
- name: Run system tests
63+
run: |
64+
python ./Test/astc_test_functional.py --encoder none
65+
python ./Test/astc_test_functional.py --encoder neon
66+
python ./Test/astc_test_functional.py --encoder sve128
67+
python ./Test/astc_test_image.py --encoder none --test-set Small
68+
python ./Test/astc_test_image.py --encoder neon --test-set Small
69+
python ./Test/astc_test_image.py --encoder sve128 --test-set Small
70+
71+
- name: Run unit tests
72+
run: ctest
73+
working-directory: build_rel
74+
1175
build-ubuntu-x64-clang:
1276
name: Ubuntu x64 Clang
1377
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)