summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2023-11-18 01:16:34 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2023-11-28 21:51:06 +0100
commita83d58eb08deeb91884e9375c62c6ab2fd8ac849 (patch)
tree08f4dad982ba72550ffaadd6d089d2ff76c23508
parent79e0051584a9ab0d6b75f3164451c0c442e9c70a (diff)
Windows and mac builds
-rw-r--r--.github/workflows/build.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..a180234e
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,56 @@
+name: Build and Release
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ build-windows:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup Qt environment
+ uses: jurplel/install-qt-action@v2
+ with:
+ version: '5.15.2'
+ - name: Build QtPass
+ run: |
+ qmake
+ make
+ copy README.md src\release\README.txt
+ copy LICENSE src\release\LICENSE.txt
+ - name: Install Inno Setup
+ run: choco install innosetup
+ - name: Create Installer with Inno Setup
+ run: ISCC.exe qtpass.iss
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: PyQtPass-Windows
+ path: release
+ - name: Upload Release Asset
+ uses: softprops/action-gh-release@v1
+ with:
+ files: Output\qtpass-*.exe
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ build-mac:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup Qt environment
+ uses: jurplel/install-qt-action@v2
+ with:
+ version: '5.15.2'
+ - name: Build QtPass
+ run: |
+ qmake
+ make
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: PyQtPass-macOS
+ path: release/
+