mirror of
https://github.com/orange-cpp/omath.git
synced 2026-08-07 21:42:05 +00:00
fix freebsd
This commit is contained in:
@@ -458,14 +458,17 @@ 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
|
||||||
|
|
||||||
|
- name: Build and Test
|
||||||
|
shell: cpa.sh {0}
|
||||||
run: |
|
run: |
|
||||||
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
||||||
git config --global --add safe.directory `pwd`
|
git config --global --add safe.directory `pwd`
|
||||||
@@ -473,6 +476,8 @@ jobs:
|
|||||||
export VCPKG_ROOT=/tmp/vcpkg
|
export VCPKG_ROOT=/tmp/vcpkg
|
||||||
rm -rf "$VCPKG_ROOT"
|
rm -rf "$VCPKG_ROOT"
|
||||||
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
||||||
|
# FreeBSD 15 packages CMake 3.31; newer vcpkg requires CMake 4.3.
|
||||||
|
git -C "$VCPKG_ROOT" checkout 9c49a77ea9365898484a06379fa2340fd4851060
|
||||||
cd "$VCPKG_ROOT"
|
cd "$VCPKG_ROOT"
|
||||||
./bootstrap-vcpkg.sh
|
./bootstrap-vcpkg.sh
|
||||||
cd -
|
cd -
|
||||||
|
|||||||
@@ -375,14 +375,17 @@ 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
|
||||||
|
|
||||||
|
- name: Build and Package
|
||||||
|
shell: cpa.sh {0}
|
||||||
run: |
|
run: |
|
||||||
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
sudo pkg install -y git curl zip unzip gmake llvm gsed bash perl5 openssl 7-zip coreutils cmake ninja pkgconf patchelf
|
||||||
git config --global --add safe.directory `pwd`
|
git config --global --add safe.directory `pwd`
|
||||||
@@ -390,6 +393,8 @@ jobs:
|
|||||||
export VCPKG_ROOT=/tmp/vcpkg
|
export VCPKG_ROOT=/tmp/vcpkg
|
||||||
rm -rf "$VCPKG_ROOT"
|
rm -rf "$VCPKG_ROOT"
|
||||||
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
||||||
|
# FreeBSD 15 packages CMake 3.31; newer vcpkg requires CMake 4.3.
|
||||||
|
git -C "$VCPKG_ROOT" checkout 9c49a77ea9365898484a06379fa2340fd4851060
|
||||||
cd "$VCPKG_ROOT"
|
cd "$VCPKG_ROOT"
|
||||||
./bootstrap-vcpkg.sh
|
./bootstrap-vcpkg.sh
|
||||||
cd -
|
cd -
|
||||||
|
|||||||
Reference in New Issue
Block a user