This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
Bump Clang version to 14 in CI runners #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows build | |
on: [push] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: RelWithDebInfo | |
REPO_DIR : ${{github.workspace}} | |
BUILD_DIR: ${{github.workspace}}/bin/builddir | |
BOOST_TOOLSET: "msvc" | |
BOOST_VERSION: "1.79.0" | |
BOOST_PLATFORM_VERSION: "2022" | |
jobs: | |
build: | |
runs-on: windows-2022 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: ${{env.REPO_DIR}} | |
submodules: true | |
- name: Create Build Environment | |
run: | | |
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV | |
cmake -E make_directory ${{ env.BUILD_DIR }} | |
# install dependencies | |
- 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/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | |
boost_version: ${{env.BOOST_VERSION}} | |
# OPTIONAL: Specify a platform version | |
platform_version: ${{env.BOOST_PLATFORM_VERSION}} | |
# OPTIONAL: Specify a toolset | |
toolset: ${{env.BOOST_TOOLSET}} | |
# NOTE: If a boost version matching all requirements cannot be found, | |
# this build step will fail | |
- name: Install OpenSSL | |
run: | | |
choco install openssl | |
- name: Configure | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
run: cmake -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DELUNA=1 -DSCRIPTS=static -DSERVERS=1 -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} | |
- name: Build | |
env: | |
MAKEFLAGS: "-j8" | |
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} | |
- name: Archive files | |
run: | | |
cd ${{env.BUILD_DIR}}/bin | |
7z a -tzip ${{env.ARCHIVE_FILENAME}} RelWithDebInfo | |
- name: Archive this artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: snapshot | |
path: "${{env.BUILD_DIR}}/bin/${{env.ARCHIVE_FILENAME}}" |