Skip to content

Commit bc7f131

Browse files
authored
fix(ci): 32-bit env with ninja
also, shame on you, github dev, for starting a random merge conflict for completely no reason
1 parent dd96efe commit bc7f131

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/client.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
6363
# Setup MSVC command prompt environment vars
6464
- uses: ilammy/msvc-dev-cmd@v1
65+
with:
66+
arch: win32
6567

6668
- name: Restore artifacts, setup vcpkg
6769
uses: lukka/run-vcpkg@v11
@@ -78,7 +80,7 @@ jobs:
7880
- name: Configure CMake
7981
run: |
8082
echo "`nfile(WRITE ${{github.workspace}}/version.txt `${BMMO_VER})" | Out-File CMakeLists.txt -Encoding "UTF8" -Append
81-
cmake -G Ninja -B ${{github.workspace}}/build -S ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_MODE=ON -DVCPKG_MANIFEST_DIR="${{github.workspace}}" -DVCPKG_TARGET_TRIPLET=x86-windows -DVIRTOOLS_SDK_FETCH_FROM_GIT=ON -DBUILD_SERVER=OFF -DBUILD_CLIENT=ON -A Win32
83+
cmake -G Ninja -B ${{github.workspace}}/build -S ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_MODE=ON -DVCPKG_MANIFEST_DIR="${{github.workspace}}" -DVCPKG_TARGET_TRIPLET=x86-windows -DVIRTOOLS_SDK_FETCH_FROM_GIT=ON -DBUILD_SERVER=OFF -DBUILD_CLIENT=ON
8284
echo "BMMO_VER=$(cat ${{github.workspace}}/version.txt)" >> $env:GITHUB_ENV
8385
echo "SHA_SHORT=$(git rev-parse --short ${{github.sha}})" >> $env:GITHUB_ENV
8486

.github/workflows/server.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ jobs:
3737
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3838
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
3939
run: |
40-
<<<<<<< HEAD
4140
echo -e "\nfile(WRITE ${{github.workspace}}/version.txt \${BMMO_VER})" >> CMakeLists.txt
42-
cmake -B ${{github.workspace}}/build -S ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SERVER=ON -DBUILD_CLIENT=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SERVER_APPIMAGE=ON
43-
echo "BMMO_VER=$(cat ${{github.workspace}}/version.txt)" >> "$GITHUB_ENV"
44-
=======
45-
echo -e "\nfile(WRITE version.txt \${BMMO_VER})" >> CMakeLists.txt
4641
cmake -G Ninja -B ${{github.workspace}}/build -S ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SERVER=ON -DBUILD_CLIENT=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SERVER_APPIMAGE=ON
47-
echo "BMMO_VER=$(cat version.txt)" >> "$GITHUB_ENV"
48-
>>>>>>> 311621b404d4d6fb65fc24526ba0c15a229d0d6e
42+
echo "BMMO_VER=$(cat ${{github.workspace}}/version.txt)" >> "$GITHUB_ENV"
4943
echo "SHA_SHORT=$(git rev-parse --short ${{github.sha}})" >> "$GITHUB_ENV"
5044
5145
- name: Build and install

0 commit comments

Comments
 (0)