-
Notifications
You must be signed in to change notification settings - Fork 86
59 lines (54 loc) · 1.48 KB
/
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
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
name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux-artifact:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release
make
- uses: actions/upload-artifact@v2
with:
name: linux-artifact
path: lua-format
windows-artifact:
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release
msbuild "lua-formatter.sln" /p:Configuration=Release /p:Platform=x64 /clp:ErrorsOnly /target:Build
- uses: actions/upload-artifact@v2
with:
name: windows-artifact
path: Release/lua-format.exe
darwin-artifact:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release
make
- uses: actions/upload-artifact@v2
with:
name: darwin-artifact
path: lua-format