Skip to content

Commit aeb2dff

Browse files
committed
- testing github action
1 parent 23c9af0 commit aeb2dff

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/linux.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
echo "::set-output name=release_tag::1.0.$TAGNAME"
1818
- name: Checkout
1919
uses: actions/checkout@v2
20+
- name: Install Qt
21+
uses: jurplel/install-qt-action@v3
2022
- 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
2224
- name: Configure build
2325
run: qmake big-file-editor.pro
2426
- name: Build project

.github/workflows/windows.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)