summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2023-07-16 12:33:53 +1200
committertoofar <toofar@spalge.com>2023-10-28 08:47:34 +1300
commit031347c48158046987dfa477d62b0774894e4649 (patch)
tree2f12ee97dc434a7a8062922739d172012a96f1c7
parentcee9e909fbd365ab9a15b84b02b7db17c8a9a57c (diff)
downloadqutebrowser-031347c48158046987dfa477d62b0774894e4649.tar.gz
qutebrowser-031347c48158046987dfa477d62b0774894e4649.zip
Copy nightly with newer pyinstaller
Updates tox pyinstaller job to specify QUTE_QT_WRAPPER - needed until autoselection of Qt wrapper is enabled. Hacks git+https://github.com/pyinstaller/pyinstaller.git@develop into the pyinstaller tox env, since the point of this is to test the upcoming pyinstaller 6 release from a banch. Removes the pyinstaller requirements file from the build_release tox job because I don't think it's needed there (the build_release script calls pyinstaller via tox).
-rw-r--r--.github/workflows/nightly-test.yml119
1 files changed, 119 insertions, 0 deletions
diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml
new file mode 100644
index 000000000..9e59d3524
--- /dev/null
+++ b/.github/workflows/nightly-test.yml
@@ -0,0 +1,119 @@
+name: Nightly builds - pyinstaller develop
+
+on:
+ workflow_dispatch:
+
+jobs:
+ pyinstaller:
+ if: "github.repository == 'qutebrowser/qutebrowser'"
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - os: macos-11
+ branch: master
+ toxenv: build-release
+ name: macos
+ - os: windows-2019
+ args: --64bit
+ branch: master
+ toxenv: build-release
+ name: windows-64bit
+ - os: windows-2019
+ args: --32bit
+ branch: master
+ toxenv: build-release
+ name: windows-32bit
+
+ - os: macos-11
+ args: --debug
+ branch: master
+ toxenv: build-release
+ name: macos-debug
+ - os: windows-2019
+ args: --64bit --debug
+ branch: master
+ toxenv: build-release
+ name: windows-64bit-debug
+ - os: windows-2019
+ args: --32bit --debug
+ branch: master
+ toxenv: build-release
+ name: windows-32bit-debug
+
+ - os: macos-11
+ toxenv: build-release-qt6
+ name: qt6-macos
+ - os: windows-2019
+ args: --64bit
+ toxenv: build-release-qt6
+ name: qt6-windows-64bit
+ - os: macos-11
+ args: --debug
+ toxenv: build-release-qt6
+ name: qt6-macos-debug
+ - os: windows-2019
+ args: --64bit --debug
+ toxenv: build-release-qt6
+ name: qt6-windows-64bit-debug
+ runs-on: "${{ matrix.os }}"
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ ref: "${{ matrix.branch }}"
+ persist-credentials: false
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: "3.10"
+ - name: Install dependencies
+ run: |
+ python -m pip install -U pip
+ python -m pip install -U -r misc/requirements/requirements-tox.txt
+ - name: Patch qutebrowser for debugging
+ if: "contains(matrix.args, '--debug')"
+ run: |
+ sed -i '' '/.-d., .--debug.,/s/$/ default=True,/' qutebrowser/qutebrowser.py
+ - name: Run tox
+ run: "tox -e ${{ matrix.toxenv }} -- --gh-token ${{ secrets.GITHUB_TOKEN }} ${{ matrix.args }}"
+ - name: Gather info
+ id: info
+ run: |
+ echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
+ echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
+ shell: bash
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: "qutebrowser-nightly-${{ steps.info.outputs.date }}-${{ steps.info.outputs.sha_short }}-${{ matrix.name }}"
+ path: |
+ dist/qutebrowser-*.dmg
+ dist/qutebrowser-*-windows-standalone-*.zip
+ dist/qutebrowser-*-*.exe
+ if-no-files-found: error
+
+ irc:
+ timeout-minutes: 2
+ continue-on-error: true
+ runs-on: ubuntu-20.04
+ needs: [pyinstaller]
+ if: "always() && github.repository == 'qutebrowser/qutebrowser'"
+ steps:
+ - name: Send success IRC notification
+ uses: Gottox/irc-message-action@v2
+ if: "needs.pyinstaller.result == 'success'"
+ with:
+ server: irc.libera.chat
+ channel: '#qutebrowser-bots'
+ nickname: qutebrowser-bot
+ message: "[${{ github.workflow }}] \u00033Success:\u0003 ${{ github.ref }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} (@${{ github.actor }})"
+ - name: Send non-success IRC notification
+ uses: Gottox/irc-message-action@v2
+ if: "needs.pyinstaller.result != 'success'"
+ with:
+ server: irc.libera.chat
+ channel: '#qutebrowser-bots'
+ nickname: qutebrowser-bot
+ message: "[${{ github.workflow }}] \u00034FAIL:\u0003 ${{ github.ref }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} (@${{ github.actor }})\n
+ pyinstaller: ${{ needs.pyinstaller.result }}"