File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 17
17
echo "::set-output name=release_tag::1.0.$TAGNAME"
18
18
- name : Checkout
19
19
uses : actions/checkout@v2
20
+ - name : Install Qt
21
+ uses : jurplel/install-qt-action@v3
20
22
- name : Install dependencies
21
- run : sudo apt-get install qt5-default alien build-essential fakeroot devscripts
23
+ run : sudo apt-get install alien build-essential fakeroot devscripts
22
24
- name : Configure build
23
25
run : qmake big-file-editor.pro
24
26
- name : Build project
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : windows-latest
8
+
9
+ steps :
10
+ - name : Checkout code
11
+ uses : actions/checkout@v2
12
+ - name : Install build tools
13
+ run : choco install -y InnoSetup qt5-default visualstudio2022community
14
+ - name : Build
15
+ run : |
16
+ "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
17
+ echo "C:\Qt\5.15.2\mingw81_64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
18
+ qmake big-file-editor.pro
19
+ nmake
20
+ del /q release\*.h release\*.cpp release\*.o
21
+ windeployqt release\big-file-editor.exe
22
+
23
+ - name : After build
24
+ run : |
25
+ iscc big-file-editor-installer.iss
26
+ move Output\setupbigfileeditor.exe .
27
+
28
+ - name : Upload artifact
29
+ uses : actions/upload-artifact@v2
30
+ with :
31
+ name : setupbigfileeditor
32
+ path : setupbigfileeditor.exe
33
+
34
+ - name : Deploy to GitHub
35
+ if : github.ref == 'refs/heads/master'
36
+ uses : actions/upload-release-asset@v1
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ with :
40
+ upload_url : ${{ github.event.release.upload_url }}
41
+ asset_path : ./setupbigfileeditor.exe
42
+ asset_name : setupbigfileeditor.exe
43
+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments