Skip to content

CI

CI #46

Workflow file for this run

name: CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0' # Weekly (At 00:00 on Sunday)
workflow_dispatch:
permissions:
actions: write
jobs:
ci:
name: Build
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
msystem: MINGW64
- arch: ucrt-x86_64
msystem: UCRT64
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: mingw-w64-${{ matrix.arch }}-toolchain
update: true
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
if: contains(matrix.arch, 'i686') || contains(matrix.arch, 'x86_64')
with:
windows_compile_environment: msys2
- name: Build qBittorrent
shell: msys2 {0}
run: |
MINGW_ARCH=${{ matrix.msystem }} makepkg-mingw --noconfirm --syncdeps
pacman --upgrade --noconfirm mingw-w64-*
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: qBittorrent_${{ matrix.arch }}
path: |
mingw-w64-*.pkg.tar.*