mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Speed up artifact upload with explicit zip.
GitHub has limits on the number of files that can be used with upload-artifact, and it sounds like it will also be faster to compress locally before uploading.
This commit is contained in:
parent
5d0fa0fbb3
commit
7c4d1e2f60
86
.github/workflows/build.yml
vendored
86
.github/workflows/build.yml
vendored
@ -3,56 +3,58 @@ name: Build
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
|
|
||||||
- name: Install environment
|
- name: Install environment
|
||||||
run: |
|
run: |
|
||||||
python -m venv ./venv
|
python -m venv ./venv
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
# For some reason the shiboken2.abi3.dll is not found properly, so I copy it instead
|
# For some reason the shiboken2.abi3.dll is not found properly, so I copy it instead
|
||||||
Copy-Item .\venv\Lib\site-packages\shiboken2\shiboken2.abi3.dll .\venv\Lib\site-packages\PySide2\ -Force
|
Copy-Item .\venv\Lib\site-packages\shiboken2\shiboken2.abi3.dll .\venv\Lib\site-packages\PySide2\ -Force
|
||||||
|
|
||||||
- name: mypy game
|
- name: mypy game
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
mypy game
|
mypy game
|
||||||
|
|
||||||
- name: mypy gen
|
- name: mypy gen
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
mypy gen
|
mypy gen
|
||||||
|
|
||||||
- name: mypy tests
|
- name: mypy tests
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
./venv/scripts/activate
|
||||||
mypy tests
|
mypy tests
|
||||||
|
|
||||||
- name: update build number
|
|
||||||
run: |
|
|
||||||
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
|
||||||
|
|
||||||
- name: Build binaries
|
- name: update build number
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
||||||
$env:PYTHONPATH=".;./pydcs"
|
|
||||||
pyinstaller pyinstaller.spec
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Build binaries
|
||||||
with:
|
run: |
|
||||||
name: dcs_liberation
|
./venv/scripts/activate
|
||||||
path: dist/
|
$env:PYTHONPATH=".;./pydcs"
|
||||||
|
pyinstaller pyinstaller.spec
|
||||||
|
|
||||||
|
- name: Create archive
|
||||||
|
run: Compress-Archive -Path .\dist\dcs_liberation\ -DestinationPath dist\dcs_liberation.zip
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: dcs_liberation
|
||||||
|
path: dist/dcs_liberation.zip
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user