-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (38 loc) · 1.14 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build
on:
push:
tags:
- 'v*'
jobs:
build-windows:
name: Build windows binary
runs-on: windows-latest
permissions:
contents: write
env:
VCPKG_DEFAULT_TRIPLET: x64-windows-static-md
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.29.x'
- name: setup vcpkg
uses: lukka/run-vcpkg@v11
- name: generate cmake
run: 'cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static-md'
- name: build
run: cmake --build build --config Release
- uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'digilogic_windows_x64_${{ github.ref_name }}.zip'
directory: 'build/Release/'
path: 'digilogic.exe'
- uses: ncipollo/release-action@v1
with:
artifacts: 'build/Release/digilogic_windows_x64_${{ github.ref_name }}.zip'
allowUpdates: true
generateReleaseNotes: true