Skip to content

Commit

Permalink
Rewrite build tools (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo authored Jul 4, 2024
2 parents b91a119 + 5f3f551 commit 3fd0385
Show file tree
Hide file tree
Showing 8 changed files with 622 additions and 782 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:

- name: Build Assets
run: |
python pkgutils.py manual
python pkgutils.py sample
python pkgutils.py qtlrelease
python pkgutils.py build-assets
- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
buildAssets:
uses: ./.github/workflows/build_assets.yml

buildLinux:
buildLinux-AppImage:
needs: buildAssets
runs-on: ubuntu-latest
env:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,23 @@ jobs:
with:
python-version: "3.12"
architecture: x64

- name: Checkout Source
uses: actions/checkout@v4

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets

- name: Build Setup Installer
run: python pkgutils.py build-win-exe

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Win-Setup
path: dist/*.exe
if-no-files-found: error
retention-days: 14
4 changes: 3 additions & 1 deletion .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
run: |
pip install -U -r requirements.txt -r tests/requirements.txt
- name: Run Build Commands
run: python pkgutils.py qtlrelease sample
run: |
python pkgutils.py qtlrelease
python pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
Expand Down
Loading

0 comments on commit 3fd0385

Please sign in to comment.