1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

cibuild: only build stuff for specific builders

This commit is contained in:
Johan Andersson 2020-09-10 20:13:54 +02:00
parent bc7b94ed0d
commit 192a3a042b
2 changed files with 6 additions and 6 deletions

View File

@ -13,8 +13,8 @@ jobs:
- {name: '3.8', python: '3.8', os: ubuntu-latest, architecture: 'x64', cibuild: "yes"} - {name: '3.8', python: '3.8', os: ubuntu-latest, architecture: 'x64', cibuild: "yes"}
- {name: '3.7', python: '3.7', os: ubuntu-latest, architecture: 'x64', cibuild: "no"} - {name: '3.7', python: '3.7', os: ubuntu-latest, architecture: 'x64', cibuild: "no"}
- {name: '3.6', python: '3.6', os: ubuntu-latest, architecture: 'x64', cibuild: "no"} - {name: '3.6', python: '3.6', os: ubuntu-latest, architecture: 'x64', cibuild: "no"}
- {name: Windows, python: '3.8', os: windows-latest, architecture: 'x64', arch-cx: 'win-amd64', cx_name: 'amd64', cibuild: "no"} - {name: Windows, python: '3.8', os: windows-latest, architecture: 'x64', arch-cx: 'win-amd64', cx_name: 'amd64', cibuild: "yes"}
- {name: WindowsX86, python: '3.8', os: windows-latest, architecture: 'x86', arch-cx: 'win32', cx_name: 'win32', cibuild: "no"} - {name: WindowsX86, python: '3.8', os: windows-latest, architecture: 'x86', arch-cx: 'win32', cx_name: 'win32', cibuild: "yes"}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
@ -86,3 +86,4 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OS: ${{ matrix.os }}

View File

@ -103,13 +103,12 @@ def pypi_upload():
logger.info("Branch: {}".format(branch())) logger.info("Branch: {}".format(branch()))
logger.info("Tag: {}".format(tag())) logger.info("Tag: {}".format(tag()))
if not tag() and branch() != "master": if not tag() and branch() != "master" and os.environ.get("CIBUILD") != "yes":
sys.exit(0) sys.exit(0)
build_package() build_package()
if os.environ.get("CIBUILD") == "yes": build_docker()
build_docker()
aws_upload() aws_upload()
if tag() and os.environ.get("CIBUILD") == "yes": if tag() and os.environ.get("OS").startswith("ubuntu"):
pypi_upload() pypi_upload()