Skip to content

Commit 5c7cb2f

Browse files
committed
Add GCC build
1 parent e5d9fd7 commit 5c7cb2f

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/build_test.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,57 @@ jobs:
6767
run: ctest
6868
working-directory: build_rel
6969

70+
build-ubuntu-arm64-gcc:
71+
name: Ubuntu arm64 GCC
72+
runs-on: ubuntu-24.04-arm
73+
steps:
74+
- name: Git checkout
75+
uses: actions/checkout@v4
76+
with:
77+
submodules: 'true'
78+
79+
- name: Install ImageMagick
80+
run: sudo apt install imagemagick
81+
82+
- name: Build release
83+
run: |
84+
export CXX=g++
85+
mkdir build_rel
86+
cd build_rel
87+
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 ..
88+
make install package -j4
89+
90+
- name: Build debug
91+
run: |
92+
export CXX=clang++
93+
mkdir build_dbg
94+
cd build_dbg
95+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
96+
make -j4
97+
98+
- name: Setup Python
99+
uses: actions/setup-python@v5
100+
with:
101+
python-version: '3.11'
102+
103+
- name: Get Python modules
104+
run: |
105+
python -m pip install --upgrade pip
106+
pip install numpy Pillow
107+
108+
- name: Run system tests
109+
run: |
110+
python ./Test/astc_test_functional.py --encoder none
111+
python ./Test/astc_test_functional.py --encoder neon
112+
python ./Test/astc_test_functional.py --encoder sve_128
113+
python ./Test/astc_test_image.py --encoder none --test-set Small
114+
python ./Test/astc_test_image.py --encoder neon --test-set Small
115+
python ./Test/astc_test_image.py --encoder sve_128 --test-set Small
116+
117+
- name: Run unit tests
118+
run: ctest
119+
working-directory: build_rel
120+
70121
build-ubuntu-x64-clang:
71122
name: Ubuntu x64 Clang
72123
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)