Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ name: Windows Release Build
on:
schedule:
# every day at 6am
- cron: '0 6 * * *'
- cron: "0 6 * * *"

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
REPO_DIR : ${{github.workspace}}
REPO_DIR: ${{github.workspace}}
BUILD_DIR: ${{github.workspace}}/bin/builddir
BOOST_VERSION_MAJOR: 1
BOOST_VERSION_MINOR: 87
BOOST_VERSION_PATCH: 0
MSVC_VERSION: 14.3

jobs:
build:
Expand All @@ -19,7 +23,7 @@ jobs:

strategy:
matrix:
include:
include:
- OPTIONAL_DEFINES: ""
TYPE: "default"

Expand All @@ -46,9 +50,11 @@ jobs:
run: |
echo "ARCHIVE_FILENAME=$env:CI_REPOSITORY_NAME-${{matrix.TYPE}}-$env:CI_SHA_SHORT.zip" >> $env:GITHUB_ENV
cmake -E make_directory ${{ env.BUILD_DIR }}
choco install boost-msvc-14.3
choco install boost-msvc-${{env.MSVC_VERSION}} --version=${{env.BOOST_VERSION_MAJOR}}.${{env.BOOST_VERSION_MINOR}}.${{env.BOOST_VERSION_PATCH}}

- name: Configure
env:
BOOST_Dir: "c:/local/boost_${{env.BOOST_VERSION_MAJOR}}_${{env.BOOST_VERSION_MINOR}}_${{env.BOOST_VERSION_PATCH}}/lib64-msvc-${{env.MSVC_VERSION}}/cmake/Boost-${{env.BOOST_VERSION_MAJOR}}.${{env.BOOST_VERSION_MINOR}}.${{env.BOOST_VERSION_PATCH}}"
run: cmake ${{matrix.OPTIONAL_DEFINES}} -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}

- name: Build
Expand All @@ -70,7 +76,7 @@ jobs:
upload:
runs-on: windows-2022
permissions:
contents: write # for marvinpinto/action-automatic-releases to generate pre-release
contents: write # for marvinpinto/action-automatic-releases to generate pre-release
needs: build

steps:
Expand Down Expand Up @@ -145,13 +151,13 @@ jobs:
details: |
**Branch:** ${{env.GIT_BRANCH}}
__**Windows Prebuilt Binaries**__

- [Default Download](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.DEFAULT_ARCH_NAME}})
- [All Options Enabled](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.ALL_ARCH_NAME}})
- [AHBot Enabled](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.AB_ARCH_NAME}})
- [PlayerBots Enabled](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.PB_ARCH_NAME}})
- [AHBot & PlayerBots Enabled](${{github.server_url}}/${{ github.repository }}/releases/download/latest/${{env.PB_AB_ARCH_NAME}})

If you find any bugs or issues please report them [here](https://github.com/cmangos/issues/issues/new/choose).
footer: Created by the CMaNGOS Team!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_RELEASE }}
Expand Down Expand Up @@ -184,4 +190,4 @@ jobs:
- **Commit:** [${{github.repository}}/${{env.GIT_SHORT_SHA}}](${{github.server_url}}/${{ github.repository }}/commit/${{github.sha}})
- **Build Log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}})
footer: CMaNGOS Developers Notified!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}