Skip to content

Commit

Permalink
- testing github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkanpakdil committed May 11, 2024
1 parent 23c9af0 commit aeb2dff
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
echo "::set-output name=release_tag::1.0.$TAGNAME"
- name: Checkout
uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v3
- name: Install dependencies
run: sudo apt-get install qt5-default alien build-essential fakeroot devscripts
run: sudo apt-get install alien build-essential fakeroot devscripts
- name: Configure build
run: qmake big-file-editor.pro
- name: Build project
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on: [push]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build tools
run: choco install -y InnoSetup qt5-default visualstudio2022community
- name: Build
run: |
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
echo "C:\Qt\5.15.2\mingw81_64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
qmake big-file-editor.pro
nmake
del /q release\*.h release\*.cpp release\*.o
windeployqt release\big-file-editor.exe
- name: After build
run: |
iscc big-file-editor-installer.iss
move Output\setupbigfileeditor.exe .
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: setupbigfileeditor
path: setupbigfileeditor.exe

- name: Deploy to GitHub
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./setupbigfileeditor.exe
asset_name: setupbigfileeditor.exe
asset_content_type: application/octet-stream

0 comments on commit aeb2dff

Please sign in to comment.