mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 22:00:34 +00:00
9ea63e692a
Signed-off-by: Jaida Wu <mlgmxyysd@meowcat.org>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- image: macos-10.15
|
|
platform: macos
|
|
- image: windows-2019
|
|
platform: windows
|
|
- image: ubuntu-18.04 # Old Ubuntu version for old glibc
|
|
platform: linux
|
|
runs-on: ${{ matrix.image }}
|
|
env:
|
|
CI_BUILD_WHEEL: ${{ matrix.platform == 'linux' }}
|
|
CI_BUILD_PYINSTALLER: 1
|
|
CI_BUILD_WININSTALLER: ${{ matrix.platform == 'windows' }}
|
|
CI_BUILD_KEY: ${{ secrets.CI_BUILD_KEY }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.10'
|
|
- if: matrix.platform == 'windows'
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: release/installbuilder/setup
|
|
key: installbuilder
|
|
- run: pip install -e .[dev]
|
|
- run: python release/cibuild.py build
|
|
# artifacts must have different names, see https://github.com/actions/upload-artifact/issues/24
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: binaries.${{ matrix.platform }}
|
|
path: release/dist
|