-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.03 KB
/
build_release.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
name: Build and Release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.26.3
ninjaVersion: 1.11.1
- name: Checkout
uses: actions/[email protected]
- name: Configure, Build
run: |
cmake -S . -B build -G "Ninja" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release
cmake --build build
- name: Generate build number
id: buildnumber
uses: onyxmueller/[email protected]
with:
token: ${{secrets.github_token}}
- name: Release Binary
uses: softprops/[email protected]
with:
files: build/hexcode.exe
tag_name: ${{ format('AutoRelease-{0}', steps.buildnumber.outputs.build_number) }}