Skip to content

Merge pull request #1 from Monczak/master #5

Merge pull request #1 from Monczak/master

Merge pull request #1 from Monczak/master #5

name: build-testownik
on: [push]
jobs:
build_and_pack:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Configure Visual Studio Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
- name: CMake configure all builds
run: |
cmake --preset release-x64
cmake --preset release-x64-crt140
- name: Build release-x64
run: cmake --build build/release
- name: Build release-x64-crt140
run: cmake --build build/release-crt140
- name: Package artifacts
run: |
mkdir dist
copy build/release/Testownik.exe dist/Testownik.exe
copy build/release-crt140/Testownik.exe dist/Testownik_static.exe
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: exe_files
path: dist/**