Skip to content

Commit d66e8a1

Browse files
authored
Use GCC14 on arm64 runner and enable SVE (#545)
1 parent d0e6c4c commit d66e8a1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build_test.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,25 @@ jobs:
8181
- name: Install ImageMagick
8282
run: sudo apt install imagemagick
8383

84+
- name: Install GCC 14
85+
run: |
86+
sudo apt-get update
87+
sudo apt-get install -y gcc-14
88+
8489
- name: Build release
8590
run: |
86-
export CXX=g++
91+
export CXX=g++-14
8792
mkdir build_rel
8893
cd build_rel
89-
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
90-
make install package -j4
94+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
95+
make install -j4
9196
9297
- name: Build debug
9398
run: |
94-
export CXX=clang++
99+
export CXX=g++-14
95100
mkdir build_dbg
96101
cd build_dbg
97-
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON ..
102+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
98103
make -j4
99104
100105
- name: Setup Python
@@ -108,14 +113,18 @@ jobs:
108113
pip install numpy Pillow
109114
110115
- name: Run system tests
116+
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
111117
run: |
112118
python ./Test/astc_test_functional.py --encoder none
113119
python ./Test/astc_test_functional.py --encoder neon
120+
python ./Test/astc_test_functional.py --encoder sve_128
114121
python ./Test/astc_test_image.py --encoder none --test-set Small
115122
python ./Test/astc_test_image.py --encoder neon --test-set Small
123+
python ./Test/astc_test_image.py --encoder sve_128 --test-set Small
116124
117125
- name: Run unit tests
118-
run: ctest --rerun-failed --output-on-failure
126+
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
127+
run: ctest -E test-unit-sve_256 --rerun-failed --output-on-failure
119128
working-directory: build_rel
120129

121130
build-ubuntu-x64-clang:

0 commit comments

Comments
 (0)