mitmproxy/.github/workflows/main.yml
Jaida Wu 9ea63e692a
make GitHub Actions build binaries only
Signed-off-by: Jaida Wu <mlgmxyysd@meowcat.org>
2022-04-20 16:36:00 +08:00

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