Skip to content

[SQL/Pandria] Alliance Pandria intro quest The Mission (29548) (#318) #53

[SQL/Pandria] Alliance Pandria intro quest The Mission (29548) (#318)

[SQL/Pandria] Alliance Pandria intro quest The Mission (29548) (#318) #53

name: windows-build-release
on:
push:
paths-ignore:
- 'sql/**'
concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
cancel-in-progress: true
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
REPO_DIR : ${{github.workspace}}
BUILD_DIR: ${{github.workspace}}/bin/builddir
BOOST_TOOLSET: "msvc"
BOOST_VERSION: "1.78.0"
jobs:
build:
runs-on: windows-2019
steps:
#git checkout
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v2
- name: Create Build Environment
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 }}
- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json
boost_version: ${{env.BOOST_VERSION}}
# OPTIONAL: Specify a platform version
platform_version: 2019
# OPTIONAL: Specify a toolset on windows
toolset: ${{env.BOOST_TOOLSET}}
# OPTIONAL: Specify a custon install location
boost_install_dir: ${{env.BOOST_INSTALL_DIR}}
# NOTE: If a boost version matching all requirements cannot be found,
# this build step will fail
- name: windows dependencies
run: |
#make
choco install -y make
#cmake
choco install -y cmake
#openssl
choco install -y openssl --version=1.1.1.2100
#git bash shell
shell: bash
#build and install
- name: windows build & install
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: |
cd $GITHUB_WORKSPACE
mkdir -p build && cd build
cmake .. -DTOOLS=ON -DELUNA=1 -A x64
cmake --build . --config RelWithDebInfo --parallel 4
#git bash shell
shell: bash
- name: Create Upload File Name
run: |
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV
- name: Archive files
run: |
#data is in Release folder
cd ${{github.workspace}}/build/bin
dir
copy "C:/Program Files/MySQL/MySQL Server 5.7/lib/libmysql.dll" ${{github.workspace}}/build/bin/RelWithDebInfo/libmysql.dll
copy "C:/Program Files/OpenSSL/bin/libssl-1_1-x64.dll" ${{github.workspace}}/build/bin/RelWithDebInfo/libssl-1_1-x64.dll
copy "c:/Program Files/OpenSSL/bin/libcrypto-1_1-x64.dll" ${{github.workspace}}/build/bin/RelWithDebInfo/libcrypto-1_1-x64.dll
move ${{github.workspace}}/contrib/lua_scripts ${{github.workspace}}/build/bin/RelWithDebInfo/lua_scripts
7z a -tzip ${{env.ARCHIVE_FILENAME}} RelWithDebInfo
- name: Archive this artefact
uses: actions/upload-artifact@v2
with:
name: snapshot-devbuild
path: "${{github.workspace}}/build/bin/${{env.ARCHIVE_FILENAME}}"
- name: Download artifact snapshot-Release
uses: actions/download-artifact@v1
with:
name: snapshot-devbuild
path: all_snapshots
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Upload snapshot
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build(${{ steps.date.outputs.date }})"
files: all_snapshots