aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshirt-dev <2660574+shirt-dev@users.noreply.github.com>2021-02-17 01:10:39 -0500
committerGitHub <noreply@github.com>2021-02-17 11:40:39 +0530
commit55e36f035cff0b7b75118930bb7bd03a75ffd534 (patch)
tree73cf3b49560cfa71363e054723b20ac90fef8170
parentc86d5023d0f300857e4dd65f129dbaa44385c740 (diff)
downloadhypervideo-pre-55e36f035cff0b7b75118930bb7bd03a75ffd534.tar.lz
hypervideo-pre-55e36f035cff0b7b75118930bb7bd03a75ffd534.tar.xz
hypervideo-pre-55e36f035cff0b7b75118930bb7bd03a75ffd534.zip
#93 Build improvements
* Lock all python package versions to the last officially supported releases for x86 * Bugfix for UNIX hash output * Use wheels to avoid compilation of python packages * Hash calculation on Windows now uses PowerShell rather than the legacy certutil Authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com>
-rw-r--r--.github/workflows/build.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ee7983433..f53e61d4a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -55,7 +55,7 @@ jobs:
asset_content_type: application/octet-stream
- name: Get SHA2-256SUMS for youtube-dlc
id: sha2_file
- run: echo "::set-output name=sha2_unix::$(sha256sum youtube-dlc)"
+ run: echo "::set-output name=sha2_unix::$(sha256sum youtube-dlc | awk '{print $1}')"
- name: Install dependencies for pypi
run: |
python -m pip install --upgrade pip
@@ -84,6 +84,8 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.8'
+ - name: Upgrade pip and enable wheel support
+ run: python -m pip install --upgrade pip setuptools wheel
- name: Install Requirements
run: pip install pyinstaller mutagen pycryptodome
- name: Bump version
@@ -105,7 +107,7 @@ jobs:
asset_content_type: application/vnd.microsoft.portable-executable
- name: Get SHA2-256SUMS for youtube-dlc.exe
id: sha2_file_win
- run: echo "::set-output name=sha2_windows::$(certUtil -hashfile dist\youtube-dlc.exe SHA256 | findstr -v :)"
+ run: echo "::set-output name=sha2_windows::$((Get-FileHash dist\youtube-dlc.exe -Algorithm SHA256).Hash.ToLower())"
build_windows32:
@@ -123,10 +125,10 @@ jobs:
with:
python-version: '3.4.4'
architecture: 'x86'
- - name: Install VS libs
- run: choco install vcexpress2010
+ - name: Upgrade pip and enable wheel support
+ run: python -m pip install pip==19.1.1 setuptools==43.0.0 wheel==0.33.6
- name: Install Requirements for 32 Bit
- run: pip install pyinstaller==3.5 mutagen pycryptodome
+ run: pip install pyinstaller==3.5 mutagen==1.42.0 pycryptodome==3.9.4
- name: Bump version
id: bump_version
run: python devscripts/update-version.py
@@ -146,7 +148,7 @@ jobs:
asset_content_type: application/vnd.microsoft.portable-executable
- name: Get SHA2-256SUMS for youtube-dlc_x86.exe
id: sha2_file_win32
- run: echo "::set-output name=sha2_windows32::$(certUtil -hashfile dist\youtube-dlc_x86.exe SHA256 | findstr -v :)"
+ run: echo "::set-output name=sha2_windows32::$((Get-FileHash dist\youtube-dlc_x86.exe -Algorithm SHA256).Hash.ToLower())"
- name: Make SHA2-256SUMS file
env:
SHA2_WINDOWS: ${{ needs.build_windows.outputs.sha2_windows }}