Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 13, 2024
1 parent ba5da81 commit dfbdd38
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,38 @@ jobs:
mingw-w64-clang-x86_64-make
mingw-w64-clang-x86_64-luajit
git tree
- name: Set up vcpkg
shell: msys2 {0}
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
cd ..
- name: Configure project with CMake and vcpkg
shell: msys2 {0}
run: |
export VCPKG_DEFAULT_TRIPLET=x64-mingw-static
export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static
mkdir build
cd build
cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON -DVOXELENGINE_BUILD_TESTS=ON ..
cmake --build . --config Release
- name: Package for Windows
run: |
mkdir 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 }}
run: |
cp $env:MSYS2_LOCATION/clang64/bin/lua51.dll ${{ github.workspace }}/
tree ${{ github.workspace }}/
# - name: Set up vcpkg
# shell: msys2 {0}
# run: |
# git clone https://github.com/microsoft/vcpkg.git
# cd vcpkg
# ./bootstrap-vcpkg.bat
# ./vcpkg integrate install
# cd ..
# - name: Configure project with CMake and vcpkg
# shell: msys2 {0}
# run: |
# export VCPKG_DEFAULT_TRIPLET=x64-mingw-static
# export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static
# mkdir build
# cd build
# cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON -DVOXELENGINE_BUILD_TESTS=ON ..
# cmake --build . --config Release
# - name: Package for Windows
# run: |
# mkdir 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
# working-directory: ${{ github.workspace }}
# - uses: actions/upload-artifact@v4
# with:
# name: Windows-Build
# path: 'packaged/*'
cp $env:MSYS2_LOCATION/clang64/bin/lua51.dll ${{ github.workspace }}/packaged/
working-directory: ${{ github.workspace }}
- uses: actions/upload-artifact@v4
with:
name: Windows-Build
path: 'packaged/*'

0 comments on commit dfbdd38

Please sign in to comment.