Skip to content

Improve text interpolators #424

Improve text interpolators

Improve text interpolators #424

Workflow file for this run

name: build
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build:
runs-on: windows-2022
env:
WORKDIR: D:/build
steps:
- name: Enable Git support for long file paths
run: git config --system core.longpaths true
- name: Set up directories
run: "md -Path 'C:\\moon\\randomizer'"
- name: Extract tag
uses: olegtarasov/get-tag@v2.1
id: tagName
with:
tagRegex: "v?([^-]*)"
- name: Check out repository code
uses: actions/checkout@v3
- name: Install MSVC developer tools
uses: microsoft/setup-msbuild@v1.1
with:
arch: x64
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 1.59.0
- name: Conan version
run: echo "${{ steps.conan.outputs.version }}"
- name: Symlink build directory
run: |
$path = Resolve-Path .
New-Item -Path ${{ env.WORKDIR }} -ItemType SymbolicLink -Value $path
- name: Generate solution
shell: cmd
working-directory: ${{ env.WORKDIR }}
run: |
gen_win64_vs2022.release.bat
IF ERRORLEVEL 1 (
echo GENERATING FAILED
exit 1
)
- name: Compile Wotw Rando
shell: cmd
working-directory: ${{ env.WORKDIR }}
run: |
cmake --build .\build\win64 --target INSTALL_RUNTIME --config RelWithDebInfo -- -clp:ForceConsoleColor
IF ERRORLEVEL 1 (
echo BUILD FAILED
exit 1
)
- name: Archive randomizer
uses: actions/upload-artifact@v2
with:
name: randomizer
path: 'C:\moon\randomizer\*'