This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
67 lines (57 loc) · 1.71 KB
/
buildEzz.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: BuildEzz
on:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: BuildEzz
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
configuration:
- Debug
- Release
steps:
- name: Check out files
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
lfs: false
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Generate project files
run: tools/premake5 vs2022
- name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master
- name: Build ${{matrix.configuration}}
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=x64 build/boiii.sln
- name: Upload ${{matrix.configuration}} binary
if: matrix.configuration == 'Release'
uses: actions/[email protected]
with:
name: ${{matrix.configuration}} Binary
path: |
build/bin/x64/${{matrix.configuration}}/boiii.exe
create_release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- name: Download boiii.exe
uses: actions/download-artifact@v3
with:
name: Release Binary
path: artifacts
- name: Create a Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.TOKEN }}
automatic_release_tag: v1.0.${{ github.run_number }}
title: Release v1.0.${{ github.run_number }}
prerelease: false
files: |
artifacts/boiii.exe