From 6744b592b2f6a2e6f2b1971bbe28aa481eb838fb Mon Sep 17 00:00:00 2001 From: LumperBumper <130532332+callfishxt@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:15:14 +0500 Subject: [PATCH 1/3] Create windows --- .github/workflows/windows | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/windows diff --git a/.github/workflows/windows b/.github/workflows/windows new file mode 100644 index 00000000..46fe7122 --- /dev/null +++ b/.github/workflows/windows @@ -0,0 +1,48 @@ +name: Windows Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-windows: + + strategy: + matrix: + include: + - os: windows-latest + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'true' + + - name: Set up vcpkg + run: | + git clone https://github.com/microsoft/vcpkg.git + cd vcpkg + .\bootstrap-vcpkg.bat + .\vcpkg integrate install + cd .. + - name: Configure and build project with CMake and vcpkg + run: | + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. + Remove-Item -Path CMakeFiles -Recurse -Force + cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. + cmake --build . --config Release + - name: Package for Windows + run: | + mkdir packaged + cp -r build/* packaged/ + working-directory: ${{ github.workspace }} + + - uses: actions/upload-artifact@v2 + with: + name: Windows-Build + path: 'packaged/Release/*' From b549023bdaf6684fcfcf789eab322e1ed9649a6b Mon Sep 17 00:00:00 2001 From: LumperBumper <130532332+callfishxt@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:15:34 +0500 Subject: [PATCH 2/3] Delete .github/workflows/windows --- .github/workflows/windows | 48 --------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/windows diff --git a/.github/workflows/windows b/.github/workflows/windows deleted file mode 100644 index 46fe7122..00000000 --- a/.github/workflows/windows +++ /dev/null @@ -1,48 +0,0 @@ -name: Windows Build - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build-windows: - - strategy: - matrix: - include: - - os: windows-latest - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v2 - with: - submodules: 'true' - - - name: Set up vcpkg - run: | - git clone https://github.com/microsoft/vcpkg.git - cd vcpkg - .\bootstrap-vcpkg.bat - .\vcpkg integrate install - cd .. - - name: Configure and build project with CMake and vcpkg - run: | - mkdir build - cd build - cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. - Remove-Item -Path CMakeFiles -Recurse -Force - cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. - cmake --build . --config Release - - name: Package for Windows - run: | - mkdir packaged - cp -r build/* packaged/ - working-directory: ${{ github.workspace }} - - - uses: actions/upload-artifact@v2 - with: - name: Windows-Build - path: 'packaged/Release/*' From 6e4c6b63e91c3f60c62506176154054765ca8684 Mon Sep 17 00:00:00 2001 From: LumperBumper <130532332+callfishxt@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:15:50 +0500 Subject: [PATCH 3/3] Create windows.yml --- .github/workflows/windows.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..46fe7122 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,48 @@ +name: Windows Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-windows: + + strategy: + matrix: + include: + - os: windows-latest + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'true' + + - name: Set up vcpkg + run: | + git clone https://github.com/microsoft/vcpkg.git + cd vcpkg + .\bootstrap-vcpkg.bat + .\vcpkg integrate install + cd .. + - name: Configure and build project with CMake and vcpkg + run: | + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. + Remove-Item -Path CMakeFiles -Recurse -Force + cmake -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_WINDOWS_VCPKG=ON .. + cmake --build . --config Release + - name: Package for Windows + run: | + mkdir packaged + cp -r build/* packaged/ + working-directory: ${{ github.workspace }} + + - uses: actions/upload-artifact@v2 + with: + name: Windows-Build + path: 'packaged/Release/*'