File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Windows Release
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ - ' continuous-integration'
8+ tags :
9+ - ' v*'
10+ pull_request :
11+ branches :
12+ - ' master'
13+ - ' continuous-integration'
14+
15+ defaults :
16+ run :
17+ shell : cmd
18+
19+ env :
20+ SOURCE_DIR : ${{ github.workspace }}
21+ QT_VERSION : 5.15.2
22+ ARTIFACT : example.exe
23+
24+ jobs :
25+ build :
26+ runs-on : windows-2019
27+
28+ steps :
29+ - name : (1) Checkout repo
30+ uses : actions/checkout@v4
31+
32+ - name : (2) Get all tags for correct version determination
33+ working-directory : ${{ github.workspace }}
34+ run : |
35+ git fetch --all --tags -f
36+ - name : (3) Install Qt
37+ uses : jurplel/install-qt-action@v2
38+ with :
39+ version : ${{ env.QT_VERSION }}
40+ host : windows
41+ target : desktop
42+ arch : win64_msvc2019_64
43+ dir : ${{ runner.temp }}
44+ setup-python : false
45+
46+ - name : (8) Build
47+ working-directory : ${{ runner.temp }}\build
48+ run : |
49+ qmake ..\qhexedit.pro
50+ ${{ runner.temp }}\jom\jom -j2
51+ cd release
52+ windeployqt --qmldir ${{ env.SOURCE_DIR }} example.exe --pdb --release --compiler-runtime
53+ copy C:\Windows\System32\concrt140.dll .
54+ copy C:\Windows\System32\vccorlib140.dll .
55+ copy C:\Windows\System32\msvcp140.dll .
56+ copy C:\Windows\System32\vcruntime140.dll .
57+
58+ - name : (9) Zip build
59+ working-directory : ${{ runner.temp }}
60+ run : |
61+ 7z a qhexedit.zip ${{ runner.temp }}\build\* -r
62+
63+ - name : (10) Save build artifact
64+ uses : actions/upload-artifact@master
65+ with :
66+ name : ${{ env.ARTIFACT }}
67+ path : ${{ runner.temp }}\${{ env.ARTIFACT }}
You can’t perform that action at this time.
0 commit comments