Skip to content

Commit

Permalink
Use GCC14 on arm64 runner and enable SVE (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel authored Jan 17, 2025
1 parent d0e6c4c commit d66e8a1
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,25 @@ jobs:
- name: Install ImageMagick
run: sudo apt install imagemagick

- name: Install GCC 14
run: |
sudo apt-get update
sudo apt-get install -y gcc-14
- name: Build release
run: |
export CXX=g++
export CXX=g++-14
mkdir build_rel
cd build_rel
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 ..
make install package -j4
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 ..
make install -j4
- name: Build debug
run: |
export CXX=clang++
export CXX=g++-14
mkdir build_dbg
cd build_dbg
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
make -j4
- name: Setup Python
Expand All @@ -108,14 +113,18 @@ jobs:
pip install numpy Pillow
- name: Run system tests
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
run: |
python ./Test/astc_test_functional.py --encoder none
python ./Test/astc_test_functional.py --encoder neon
python ./Test/astc_test_functional.py --encoder sve_128
python ./Test/astc_test_image.py --encoder none --test-set Small
python ./Test/astc_test_image.py --encoder neon --test-set Small
python ./Test/astc_test_image.py --encoder sve_128 --test-set Small
- name: Run unit tests
run: ctest --rerun-failed --output-on-failure
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
run: ctest -E test-unit-sve_256 --rerun-failed --output-on-failure
working-directory: build_rel

build-ubuntu-x64-clang:
Expand Down

0 comments on commit d66e8a1

Please sign in to comment.