Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mugiseyebrows committed Jan 31, 2024
1 parent a874e27 commit 5cee9e0
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: main
on: push
jobs:
main:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
name: checkout
- name: main
shell: cmd
run: |
set PATH=C:\Miniconda3;C:\Miniconda3\Scripts;%USERPROFILE%\Miniconda3;%USERPROFILE%\Miniconda3\Scripts;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin;%PATH%
where mugideploy || pip install mugideploy
where aqt || pip install aqtinstall
if not exist "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" aqt install-qt windows desktop 5.15.2 win64_mingw81 -O C:\Qt
if not exist "C:\Qt\Tools\mingw810_64\bin\gcc.exe" aqt install-tool windows desktop tools_mingw qt.tools.win64_mingw810 -O C:\Qt
qmake
mingw32-make release -j4
mugideploy collect --app mugi-query --git-version --bin release\mugi-query.exe --plugins odbc mysql sqlite psql --zip
- name: upload
uses: actions/upload-artifact@v3
with:
name: mugi-query-win64
path: mugi-query-*-win64
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: mugi-query-*-win64.zip
10 changes: 10 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
rem This file is generated from build.pbat, all edits will be lost
set PATH=C:\Miniconda3;C:\Miniconda3\Scripts;%USERPROFILE%\Miniconda3;%USERPROFILE%\Miniconda3\Scripts;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin;%PATH%
where mugideploy || pip install mugideploy
where aqt || pip install aqtinstall
if not exist "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" aqt install-qt windows desktop 5.15.2 win64_mingw81 -O C:\Qt
if not exist "C:\Qt\Tools\mingw810_64\bin\gcc.exe" aqt install-tool windows desktop tools_mingw qt.tools.win64_mingw810 -O C:\Qt
qmake
mingw32-make release -j4
mugideploy collect --app mugi-query --git-version --bin release\mugi-query.exe --plugins odbc mysql sqlite psql --zip
14 changes: 14 additions & 0 deletions build.pbat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
def main
github_checkout()
use(conda)
install(mugideploy)
install(aqt)
install(qt, 5.15.2, win64_mingw81)
install(mingw, 8.1.0)
qmake
mingw32-make release -j4
mugideploy collect --app mugi-query --git-version --bin release\mugi-query.exe --plugins odbc mysql sqlite psql --zip
github_upload(mugi-query-*-win64, :name=mugi-query-win64)
github_release(mugi-query-*-win64.zip)

github-workflow 1

0 comments on commit 5cee9e0

Please sign in to comment.