Skip to content

Commit

Permalink
Download/build wheels on a Windows container
Browse files Browse the repository at this point in the history
  • Loading branch information
Callum027 committed Dec 3, 2023
1 parent b77dbfb commit 1459614
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 24 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/publish-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ on:
- published

jobs:
wheels:
runs-on: windows-2022
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Check out the repository
uses: actions/checkout@v4
- name: Download and build wheels
run: python -m pip wheel --requirement requirements.txt --wheel-dir wheels
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheels
retention-days: 5

buildarr-installer:
runs-on: ubuntu-22.04
steps:
Expand All @@ -16,13 +34,17 @@ jobs:
- name: Update package metadata
run: sudo apt-get update
- name: Install system packages
run: sudo apt-get install -y make nsis
run: sudo apt-get install -y nsis
- name: Install pynsist
run: python -m pip install pynsist
run: python -m pip install pynsist==2.8
- name: Check out the repository
uses: actions/checkout@v4
- name: Download wheels from build artifacts
uses: actions/download-artifact@v3
with:
name: wheels
- name: Build Buildarr installer
run: make
run: pynsist installer.cfg
- name: Upload Buildarr installer to release
uses: xresloader/upload-to-github-release@v1
env:
Expand Down
45 changes: 41 additions & 4 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ on:
workflow_dispatch:

jobs:
wheels:
runs-on: windows-2022
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Check out the repository
uses: actions/checkout@v4
- name: Download and build wheels
run: python -m pip wheel --requirement requirements.txt --wheel-dir wheels
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheels
retention-days: 5

buildarr-installer:
runs-on: ubuntu-22.04
steps:
Expand All @@ -18,16 +36,35 @@ jobs:
- name: Update package metadata
run: sudo apt-get update
- name: Install system packages
run: sudo apt-get install -y make nsis
run: sudo apt-get install -y nsis zip
- name: Install pynsist
run: python -m pip install pynsist
run: python -m pip install pynsist==2.8
- name: Check out the repository
uses: actions/checkout@v4
- name: Download wheels from build artifacts
uses: actions/download-artifact@v3
with:
name: wheels
- name: Build Buildarr installer
run: make
run: pynsist installer.cfg
- name: Compress package build artifacts
run: zip -r pkgs.zip pkgs
working-directory: build/nsis
- name: Compress Python build artifacts
run: zip -r Python.zip Python
working-directory: build/nsis
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: buildarr-installer
path: build/nsis
path: |
build/nsis/bin
build/nsis/*.exe
build/nsis/*.ico
build/nsis/*.py[w]
build/nsis/installer.nsi
build/nsis/LICENSE.txt
build/nsis/pkgs.zip
build/nsis/Python.zip
build/nsis/_system_path.py
retention-days: 5
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

0 comments on commit 1459614

Please sign in to comment.