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:
parent
bc7b94ed0d
commit
192a3a042b
5
.github/workflows/tests.yaml
vendored
5
.github/workflows/tests.yaml
vendored
@ -13,8 +13,8 @@ jobs:
|
||||
- {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.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: WindowsX86, python: '3.8', os: windows-latest, architecture: 'x86', arch-cx: 'win32', cx_name: 'win32', 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: "yes"}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
@ -86,3 +86,4 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
OS: ${{ matrix.os }}
|
||||
|
@ -103,13 +103,12 @@ def pypi_upload():
|
||||
logger.info("Branch: {}".format(branch()))
|
||||
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)
|
||||
|
||||
build_package()
|
||||
if os.environ.get("CIBUILD") == "yes":
|
||||
build_docker()
|
||||
build_docker()
|
||||
aws_upload()
|
||||
|
||||
if tag() and os.environ.get("CIBUILD") == "yes":
|
||||
if tag() and os.environ.get("OS").startswith("ubuntu"):
|
||||
pypi_upload()
|
||||
|
Loading…
Reference in New Issue
Block a user