mirror of
https://github.com/orange-cpp/omath.git
synced 2026-08-08 05:52:07 +00:00
Compare commits
3 Commits
d9815cd757
...
v5.5.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 43e2af556f | |||
| 550a08c24e | |||
| 70fba5addd |
@@ -458,32 +458,36 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Build and Test
|
- name: Start FreeBSD VM
|
||||||
uses: cross-platform-actions/action@v0.31.0
|
uses: cross-platform-actions/action@v1.3.0
|
||||||
with:
|
with:
|
||||||
operating_system: freebsd
|
operating_system: freebsd
|
||||||
architecture: ${{ matrix.arch }}
|
architecture: ${{ matrix.arch }}
|
||||||
version: '15.0'
|
version: '15.0'
|
||||||
memory: '12G'
|
memory: '12G'
|
||||||
cpu_count: 4
|
cpu_count: 4
|
||||||
run: |
|
|
||||||
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
- name: Build and Test
|
||||||
git config --global --add safe.directory `pwd`
|
shell: cpa.sh {0}
|
||||||
# Build vcpkg in /tmp to avoid sshfs timestamp sync issues
|
run: |
|
||||||
export VCPKG_ROOT=/tmp/vcpkg
|
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
||||||
rm -rf "$VCPKG_ROOT"
|
git config --global --add safe.directory `pwd`
|
||||||
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
# Build vcpkg in /tmp to avoid sshfs timestamp sync issues
|
||||||
cd "$VCPKG_ROOT"
|
export VCPKG_ROOT=/tmp/vcpkg
|
||||||
./bootstrap-vcpkg.sh
|
rm -rf "$VCPKG_ROOT"
|
||||||
cd -
|
# FreeBSD 15 packages CMake 3.31; newer vcpkg requires CMake 4.3.
|
||||||
export VCPKG_FORCE_SYSTEM_BINARIES=0
|
git clone --branch 2026.06.24 --depth 1 https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
||||||
cmake --preset ${{ matrix.preset }} \
|
cd "$VCPKG_ROOT"
|
||||||
-DOMATH_BUILD_TESTS=ON \
|
./bootstrap-vcpkg.sh
|
||||||
-DOMATH_BUILD_BENCHMARK=OFF \
|
cd -
|
||||||
-DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests;lua" \
|
export VCPKG_FORCE_SYSTEM_BINARIES=0
|
||||||
-DVCPKG_INSTALL_OPTIONS="--allow-unsupported"
|
cmake --preset ${{ matrix.preset }} \
|
||||||
cmake --build cmake-build/build/${{ matrix.preset }} --target unit_tests omath
|
-DOMATH_BUILD_TESTS=ON \
|
||||||
./out/Release/unit_tests
|
-DOMATH_BUILD_BENCHMARK=OFF \
|
||||||
|
-DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests;lua" \
|
||||||
|
-DVCPKG_INSTALL_OPTIONS="--allow-unsupported"
|
||||||
|
cmake --build cmake-build/build/${{ matrix.preset }} --target unit_tests omath
|
||||||
|
./out/Release/unit_tests
|
||||||
|
|
||||||
- name: Upload logs on failure
|
- name: Upload logs on failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
|||||||
@@ -375,33 +375,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Build and Package
|
- name: Start FreeBSD VM
|
||||||
uses: cross-platform-actions/action@v0.31.0
|
uses: cross-platform-actions/action@v1.3.0
|
||||||
with:
|
with:
|
||||||
operating_system: freebsd
|
operating_system: freebsd
|
||||||
architecture: ${{ matrix.arch }}
|
architecture: ${{ matrix.arch }}
|
||||||
version: '15.0'
|
version: '15.0'
|
||||||
memory: '12G'
|
memory: '12G'
|
||||||
cpu_count: 4
|
cpu_count: 4
|
||||||
run: |
|
|
||||||
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
- name: Build and Package
|
||||||
git config --global --add safe.directory `pwd`
|
shell: cpa.sh {0}
|
||||||
# Build vcpkg in /tmp to avoid sshfs timestamp sync issues
|
run: |
|
||||||
export VCPKG_ROOT=/tmp/vcpkg
|
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
||||||
rm -rf "$VCPKG_ROOT"
|
git config --global --add safe.directory `pwd`
|
||||||
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
# Build vcpkg in /tmp to avoid sshfs timestamp sync issues
|
||||||
cd "$VCPKG_ROOT"
|
export VCPKG_ROOT=/tmp/vcpkg
|
||||||
./bootstrap-vcpkg.sh
|
rm -rf "$VCPKG_ROOT"
|
||||||
cd -
|
# FreeBSD 15 packages CMake 3.31; newer vcpkg requires CMake 4.3.
|
||||||
export VCPKG_FORCE_SYSTEM_BINARIES=0
|
git clone --branch 2026.06.24 --depth 1 https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
||||||
cmake --preset ${{ matrix.preset }} \
|
cd "$VCPKG_ROOT"
|
||||||
-DOMATH_BUILD_TESTS=OFF \
|
./bootstrap-vcpkg.sh
|
||||||
-DOMATH_BUILD_BENCHMARK=OFF \
|
cd -
|
||||||
-DVCPKG_MANIFEST_FEATURES="imgui;avx2" \
|
export VCPKG_FORCE_SYSTEM_BINARIES=0
|
||||||
-DVCPKG_INSTALL_OPTIONS="--allow-unsupported"
|
cmake --preset ${{ matrix.preset }} \
|
||||||
cmake --build cmake-build/build/${{ matrix.preset }} --target omath
|
-DOMATH_BUILD_TESTS=OFF \
|
||||||
cmake --install cmake-build/build/${{ matrix.preset }} --prefix staging
|
-DOMATH_BUILD_BENCHMARK=OFF \
|
||||||
tar -czf ${{ matrix.archive }}.tar.gz -C staging .
|
-DVCPKG_MANIFEST_FEATURES="imgui;avx2" \
|
||||||
|
-DVCPKG_INSTALL_OPTIONS="--allow-unsupported"
|
||||||
|
cmake --build cmake-build/build/${{ matrix.preset }} --target omath
|
||||||
|
cmake --install cmake-build/build/${{ matrix.preset }} --prefix staging
|
||||||
|
tar -czf ${{ matrix.archive }}.tar.gz -C staging .
|
||||||
|
|
||||||
- name: Upload release asset
|
- name: Upload release asset
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user