-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (61 loc) · 1.47 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
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
68
69
70
71
---
# yamllint disable rule:line-length
name: Build and release
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
tags:
- "v*.*.*"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 7
platform: x64
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: i686
cc: 0
- name: Build
run: |
make dummyengine CXX_COMPILER=g++-7
make dummyengine.exe
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
retention-days: 7
name: binaries
path: |
dummyengine
dummyengine.exe
release:
name: Release
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: binaries
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
fail_on_unmatched_files: true
generate_release_notes: true
files: |
dummyengine
dummyengine.exe