-
-
Notifications
You must be signed in to change notification settings - Fork 33
74 lines (63 loc) · 1.8 KB
/
build-relase.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: Build and Release
# on:
# push:
# tags:
# - 'v*'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Checkout msbuild
id: checkout_msbuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '16.11'
msbuild-architecture: x64
- name: Set up MSVC
shell: cmd
run: |
echo "The output from Step is: ${{ steps.checkout_msbuild.outputs.output_value }}"
call "${{ steps.checkout_msbuild.outputs.output_value }}\VC\Auxiliary\Build\vcvars64.bat"
where.exe cl.exe
where.exe nmake.exe
- name: Set up Qt6
shell: powershell
run: |
choco install qt6-base-dev
- name: Build
run: \
echo $PATH
where.exe qmake
qmake
nmake
- name: Create 7Z file
run: |
7z a cpi-windows.7z cpi.exe LICENSE translations
# - name: Create release
# id: create_release
# uses: actions/create-release@main
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# - name: Upload release asset
# uses: actions/upload-release-asset@main
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: cpi-windows.7z
# asset_name: cpi-windows-${{ github.ref_name }}.7z
# asset_content_type: application/x-7z-compressed