108 lines
3.8 KiB
YAML
108 lines
3.8 KiB
YAML
name: Nightly builds
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Every day at 04:05 UTC
|
|
# https://crontab.guru/#05_04_*_*_*
|
|
- cron: '05 04 * * *'
|
|
|
|
jobs:
|
|
pyinstaller:
|
|
if: "github.repository == 'qutebrowser/qutebrowser'"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: macos-15-intel
|
|
toxenv: build-release
|
|
name: macos-intel
|
|
- os: macos-14
|
|
toxenv: build-release
|
|
name: macos-apple-silicon
|
|
- os: windows-latest
|
|
toxenv: build-release
|
|
name: windows
|
|
- os: macos-15-intel
|
|
args: --debug
|
|
toxenv: build-release
|
|
name: macos-debug-intel
|
|
- os: macos-14
|
|
toxenv: build-release
|
|
name: macos-debug-apple-silicon
|
|
- os: windows-latest
|
|
args: --debug
|
|
toxenv: build-release
|
|
name: windows-debug
|
|
runs-on: "${{ matrix.os }}"
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Install nsis
|
|
if: "matrix.os == 'windows-latest'"
|
|
run: |
|
|
irm get.scoop.sh | iex
|
|
scoop update
|
|
scoop bucket add extras
|
|
scoop install nsis
|
|
Add-Content $env:GITHUB_PATH "C:\Users\runneradmin\scoop\shims"
|
|
shell: pwsh
|
|
- 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 '/.-d., .--debug.,/s/$/ default=True,/' qutebrowser/qutebrowser.py > qutebrowser/qutebrowser.py.tmp
|
|
cp qutebrowser/qutebrowser.py.tmp qutebrowser/qutebrowser.py
|
|
rm qutebrowser/qutebrowser.py.tmp
|
|
- 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@v5
|
|
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-24.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 }}"
|