-
Notifications
You must be signed in to change notification settings - Fork 5
83 lines (71 loc) · 2.64 KB
/
nutil_windows_build_nightly.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
75
76
77
78
79
80
81
82
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-2019
if: "contains(github.event.head_commit.message, 'nightly')"
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: papeloto/action-zip@v1
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.0.1'
# tools: 'tools_ifw,4.0.0,qt.tools.ifw.40 tools_qtcreator,7.0.2,qt.tools.qtcreator'
tools: 'tools_ifw,4.0.0,qt.tools.ifw.40 tools_qtcreator,9.0.0,qt.tools.qtcreator'
- name: Write version file
run: "echo ${{ steps.tag_version.outputs.new_tag }}>version.txt"
shell: cmd
- name: Compile
run : "Publish\\windows_ci\\windows_build.cmd"
- name: Build_app
run : "Publish\\windows_ci\\build_dir.cmd"
# - name: Nutil_validator
# run : "Publish\\windows_ci\\validator.cmd"
- name: Zipping
uses: papeloto/action-zip@v1
with:
files: nutil
dest: nutil_win_nightly.zip
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: |
Beta version of Nutil. Features might not be tested or incomplete.
draft: false
prerelease: true
- name: Rename file
run: "mv nutil_win_nightly.zip nutil_win_nightly_${{ steps.tag_version.outputs.new_tag }}.zip"
- name: Upload Release Asset (x64)
id: upload-release-asset-x64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nutil_win_nightly_${{ steps.tag_version.outputs.new_tag }}.zip
asset_name: nutil_win_nightly_${{ steps.tag_version.outputs.new_tag }}.zip
asset_content_type: application/zip