Skip to content

change env to OS

change env to OS #294

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: windows-2022
name: build
steps:
- uses: actions/checkout@v3
- name: Check CMake version
run: cmake --version
- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Install Conan
run: |
pip install conan==2.2.2
conan config install https://bitbucket.org/telkom-workspace/gaboot-backend/downloads/config.zip
- name: Install Package
run: conan install conanfile.py -of=conan/Windows --build=missing
- name: Remove CMakeUserPresets.json
run: rm CMakeUserPresets.json
- name: Setup vcpkg toolchain
run: cmake -D CMAKE_BUILD_TYPE=Release -S. -Bbuild -G Ninja
- name: Build 64bit release Executable
run: cmake --build ./build --config Release --target Gaboot --
- name: Check if Executable got built
run: if (-Not (Test-Path -path "build/Gaboot.exe")) {throw 1}
- name: Rename Executable to Gaboot-dev-{GITHUB_SHA}.exe
run: |
del Gaboot-dev-*.exe
ren Gaboot.exe Gaboot-dev-${{github.sha}}.exe
working-directory: build/
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: gaboot-backend
path: build/Gaboot-dev-*.exe