Skip to content

Commit

Permalink
Revert "Try refactor"
Browse files Browse the repository at this point in the history
This reverts commit f8225ef.
  • Loading branch information
Stepanov Igor committed Dec 25, 2024
1 parent f8225ef commit ffd7473
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/windows-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
install: >-
mingw-w64-clang-x86_64-toolchain
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-ninja
mingw-w64-clang-x86_64-make
mingw-w64-clang-x86_64-luajit
git
- name: Set up vcpkg
Expand All @@ -42,17 +42,22 @@ jobs:
cd ..
- name: Configure project with CMake and vcpkg
shell: msys2 {0}
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
run: |
export VCPKG_DEFAULT_TRIPLET=x64-mingw-static
export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static
export VCPKG_ROOT=./vcpkg
cmake --preset=default-ninja-clang-windows
mkdir build
cd build
cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake ..
cmake --build . --config Release
- name: Package for Windows
run: |
mkdir packaged
cp -r build/Release/ packaged/
cp build/vctest/Release/vctest.exe packaged/
mkdir packaged/res
cp build/VoxelEngine.exe packaged/
cp build/vctest/vctest.exe packaged/
cp build/*.dll packaged/
cp -r build/res/* packaged/res/
mv packaged/VoxelEngine.exe packaged/VoxelCore.exe
- env:
MSYS2_LOCATION: ${{ steps.msys2.outputs.msys2-location }}
Expand Down

0 comments on commit ffd7473

Please sign in to comment.