-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui: upgrades, enhancements, and deprecations (#1092)
- upgrade to PySide6 (bug 1782252) - various renamed methods related to PySide6 - fix deprecated method calls - upgrade CI images to use ubuntu 20.04 (bug 1786367) - remove Python 3.6 support (bug 1767535) - keep bundle intact to prevent corrupt signature (bug 1786365) - move windows build + test to github actions (bug 1786362) - move gui uploads to separate workflow (bug 1786363)
- Loading branch information
Showing
53 changed files
with
545 additions
and
1,578 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
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,108 @@ | ||
name: Build and upload GUI packages | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-publish-linux-gui: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DISPLAY: ":99.0" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup | ||
run: | | ||
sudo apt-get update | ||
sudo apt install libxcb-xinerama0 libegl-dev -y | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m venv env | ||
source env/bin/activate | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements/requirements-3.9-Linux.txt | ||
python -m pip install -e . | ||
- name: Build | ||
run: | | ||
source env/bin/activate | ||
python gui/build.py bundle | ||
ls -alh gui/mozregression-gui.tar.gz | ||
- name: Upload | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./gui/mozregression-gui.tar.gz | ||
asset_name: mozregression-gui.tar.gz | ||
asset_content_type: application/gzip | ||
|
||
build-and-publish-mac-gui: | ||
runs-on: macos-latest | ||
env: | ||
# We need the official Python, because the GA ones only support newer macOS versions | ||
# The deployment target is picked up by the Python build tools automatically | ||
PYTHON_VERSION: 3.9.1 | ||
MACOSX_DEPLOYMENT_TARGET: 10.13 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Python | ||
run: curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macosx10.9.pkg -o "python.pkg" | ||
- name: Install Python | ||
# See: https://github.com/actions/virtual-environments/issues/1256#issuecomment-770270252 | ||
run: | | ||
sudo installer -pkg python.pkg -target / | ||
python3 -m venv env | ||
source env/bin/activate | ||
which python | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
source env/bin/activate | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements/requirements-3.9-macOS.txt | ||
python -m pip install -e . | ||
- name: Build | ||
run: | | ||
source env/bin/activate | ||
python gui/build.py bundle | ||
ls -alh gui/dist/mozregression-gui.dmg | ||
- name: Upload | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./gui/dist/mozregression-gui.dmg | ||
asset_name: mozregression-gui.dmg | ||
asset_content_type: application/octet-stream | ||
build-and-publish-windows-gui: | ||
runs-on: windows-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements/requirements-3.10-Windows.txt | ||
python -m pip install -e . | ||
- name: Build and test | ||
run: | | ||
python gui\build.py bundle --nsis-path "C:\\Program Files (x86)\\NSIS" | ||
python gui\build.py test | ||
- name: Upload | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./gui/wininst/mozregression-gui.exe | ||
asset_name: mozregression-gui.exe | ||
asset_content_type: application/octet-stream |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.