[#42409] Catch ChunkedEncodingError #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
jobs: | |
build-static: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install build tools | |
run: | | |
sudo apt -qqy update && sudo apt -qqy install patchelf build-essential python3-pip git zlib1g-dev python3-setuptools python3-venv python3-wheel | |
git clone https://github.com/pyinstaller/pyinstaller.git | |
cd pyinstaller/bootloader && CC="gcc -no-pie" python3 waf configure all && cd - | |
cd pyinstaller && sudo pip3 install . && cd - | |
sudo pip3 install staticx | |
- name: Install dependencies | |
run: python setup.py egg_info && pip3 install -r *.egg-info/requires.txt | |
- name: Build static binary | |
run: | | |
T="$(git describe --exact-match --tags 2> /dev/null | cut -c2-)" bash -c 'echo -n "__version__ = \"${T:-$(git rev-parse HEAD)}\""' > dockersave/_version.py | |
pyinstaller -F dockersave/cli.py | |
mv dist/cli dist/dockersave | |
staticx dist/dockersave dockersave-static | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dockersave-static | |
path: dockersave-static | |
upload-release: | |
runs-on: ubuntu-22.04 | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: build-static | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dockersave-static | |
- run: ls -alh | |
- run: chmod +x dockersave-static && mv dockersave-static dockersave | |
- run: ./dockersave --version | |
- name: Publish | |
uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: dockersave |