mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
Update ci.yml
This commit is contained in:
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-13, macos-14, ubuntu-22.04, ubuntu-24.04, fedora-latest, debian-latest, centos-latest, archlinux-latest]
|
os: [macos-13, macos-14, ubuntu-22.04, ubuntu-24.04]
|
||||||
simd: [none, sse, sse2, sse3, sse4, avx, avx2, neon]
|
simd: [none, sse, sse2, sse3, sse4, avx, avx2, neon]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -23,22 +23,10 @@ jobs:
|
|||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: brew upgrade && brew install autoconf automake libtool
|
run: brew upgrade && brew install autoconf automake libtool
|
||||||
|
|
||||||
- name: Install Autotools on Fedora
|
- name: Install Autotools on Ubuntu
|
||||||
if: matrix.os == 'fedora-latest'
|
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
|
||||||
run: sudo dnf install -y autoconf automake libtool
|
|
||||||
|
|
||||||
- name: Install Autotools on Debian
|
|
||||||
if: matrix.os == 'debian-latest'
|
|
||||||
run: sudo apt-get install -y autoconf automake libtool
|
run: sudo apt-get install -y autoconf automake libtool
|
||||||
|
|
||||||
- name: Install Autotools on CentOS
|
|
||||||
if: matrix.os == 'centos-latest'
|
|
||||||
run: sudo yum install -y autoconf automake libtool
|
|
||||||
|
|
||||||
- name: Install Autotools on Arch Linux
|
|
||||||
if: matrix.os == 'archlinux-latest'
|
|
||||||
run: sudo pacman -Syu --noconfirm autoconf automake libtool
|
|
||||||
|
|
||||||
- name: Set SIMD flags
|
- name: Set SIMD flags
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.simd }}" == "none" ]; then
|
if [ "${{ matrix.simd }}" == "none" ]; then
|
||||||
@@ -219,10 +207,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
if: runner.os == 'windows-2022'
|
run: |
|
||||||
run: cmake -B build -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DCGLM_STATIC=ON -DCGLM_USE_TEST=ON
|
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||||
else:
|
cmake -B build -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DCGLM_STATIC=ON -DCGLM_USE_TEST=ON
|
||||||
run: cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DCGLM_STATIC=ON -DCGLM_USE_TEST=ON
|
else
|
||||||
|
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DCGLM_STATIC=ON -DCGLM_USE_TEST=ON
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
|
Reference in New Issue
Block a user