-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Continuously build the PySide6 package
Add a CI job that does the following: 1. Continuously build the package, and upload it in the workflow pipeline. 2. Check that the version that we package does not lag behind the PyPI one.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: PySide6 CI | ||
on: | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 0 * * *' # Run every day at 00:00 UTC. | ||
|
||
jobs: | ||
build-package: | ||
name: "Build the PySide6 package for Fedora ${{matrix.version}}" | ||
runs-on: ubuntu-latest | ||
container: fedora:${{ matrix.version }} | ||
strategy: | ||
matrix: | ||
include: | ||
- version: "38" | ||
- version: "39" | ||
env: | ||
rpm_name: python3-pyside6-6.6.1-1.fc${{matrix.version}}.x86_64.rpm | ||
srpm_name: python3-pyside6-6.6.1-1.fc${{matrix.version}}.src.rpm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install build dependencies | ||
run: sudo dnf install -y rpm-build python3-devel | ||
- name: Build the PySide6 package | ||
run: ./build.sh | ||
- name: Upload binary RPM | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.rpm_name }} | ||
path: "./rpmbuild/RPMS/x86_64/${{ env.rpm_name }}" | ||
- name: Upload source RPM | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.srpm_name }} | ||
path: "./rpmbuild/SRPMS/${{ env.rpm_name }}" | ||
|
||
check-updates: | ||
name: "Ensure our package does not lag behind the PyPI one" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo apt-get install -y python-requests | ||
- name: Check if there is a PySide6 update | ||
run: ./check_updates.py |