Skip to content

Commit

Permalink
Use GCC-14 on arm64 runner and enable SVE
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jan 17, 2025
1 parent d0e6c4c commit 6d1bb9d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,23 @@ 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 ..
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 package -j4
- name: Build debug
run: |
export CXX=clang++
mkdir build_dbg
cd build_dbg
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON ..
make -j4
- name: Build debug run: | export CXX=g++-14 mkdir build_dbg cd build_dbg
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
uses: actions/setup-python@v5
Expand All @@ -108,14 +110,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 6d1bb9d

Please sign in to comment.