-
Notifications
You must be signed in to change notification settings - Fork 5
80 lines (68 loc) · 2.41 KB
/
nutil_macos_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
72
73
74
75
76
77
78
79
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: macos-latest
if: "contains(github.event.head_commit.message, 'mbmp')"
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,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/publish_mac/publish_ci.sh"
# - name: Nutil_validator
# run : "Publish\\windows_ci\\validator.cmd"
# - name: Zipping
# uses: papeloto/action-zip@v1
# with:
# files: nutil
# dest: nutil_win.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: |
Macos version of Nutil.
draft: false
prerelease: true
- name: Rename file
run: "mv nutil_macos.dmg nutil_macos_${{ steps.tag_version.outputs.new_tag }}.dmg"
- name: Upload Release Asset (x64) macos
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_macos_${{ steps.tag_version.outputs.new_tag }}.dmg
asset_name: nutil_macos_${{ steps.tag_version.outputs.new_tag }}.dmg
asset_content_type: application/dmg