-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 2.62 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Publish
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ilammy/[email protected]
with:
arch: win32
- name: Download WinFlexBison
uses: suisei-cn/[email protected]
with:
url: "https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip"
- name: Unzip WinFlexBison
run: 7z x win_flex_bison-2.5.25.zip -obin
- name: Download llvm-project-with-widberg-extensions
uses: suisei-cn/[email protected]
with:
url: "https://github.com/widberg/llvm-project-widberg-extensions/releases/download/widberg-0.0.3/widberg-0.0.3-windows-x86_64-ebf30081beeca3bf1ec166f789c0c1889e0c27c1.zip"
- name: Unzip llvm-project-with-widberg-extensions
run: 7z x widberg-0.0.3-windows-x86_64-ebf30081beeca3bf1ec166f789c0c1889e0c27c1.zip -obin
- name: Package
run: |
cmake -B build -G Ninja -DWIDBERG_CLANG_CL="${{ github.workspace }}/bin/clang-cl.exe" -DBISON_EXECUTABLE="${{ github.workspace }}/bin/win_bison.exe" -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --target package_fmtk --config RelWithDebInfo
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body: |
Check the README for [installation instructions](https://github.com/widberg/fmtk#installing-for-users-and-mod-developers).
Check the [documentation for users and mod developers](https://fmtk.readthedocs.io/en/latest/) to see what you can do with FMTK.
draft: false
prerelease: false
- name: Upload FMTK Archive to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: fmtk-${{ github.ref_name }}-${{ github.sha }}.zip
asset_path: build/fmtk.zip
asset_content_type: application/zip
- name: Upload FMTKSDK Archive to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: fmtksdk-${{ github.ref_name }}-${{ github.sha }}.zip
asset_path: build/fmtksdk.zip
asset_content_type: application/zip