mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Fix UPX installation
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -88,18 +88,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Check code style
|
- name: Check code style
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
|
||||||
|
|
||||||
pdm run lint
|
pdm run lint
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
pdm run utest
|
pdm run utest
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
case "${{ matrix.os }}" in
|
case "${{ matrix.os }}" in
|
||||||
ubuntu-*)
|
ubuntu-*)
|
||||||
sudo apt-get install -o Acquire::Retries=3 --no-install-recommends -y xvfb
|
sudo apt-get install -o Acquire::Retries=3 --no-install-recommends -y xvfb
|
||||||
@@ -132,7 +130,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
upx_download_url=$(curl -fsSL https://api.github.com/repos/upx/upx/releases/latest | grep browser_download_url | grep win64.zip | cut "-d\"" -f4)
|
upx_download_url=$(curl -fsSL -H "Authorization: token ${{ github.token }}" https://api.github.com/repos/upx/upx/releases/latest | grep browser_download_url | grep win64.zip | cut "-d\"" -f4)
|
||||||
echo "Downloading [$upx_download_url]..."
|
echo "Downloading [$upx_download_url]..."
|
||||||
curl -fL -o /tmp/upx.zip $upx_download_url
|
curl -fL -o /tmp/upx.zip $upx_download_url
|
||||||
|
|
||||||
@@ -142,7 +140,7 @@ jobs:
|
|||||||
echo "$(cygpath -wa /tmp/upx)" >> $GITHUB_PATH
|
echo "$(cygpath -wa /tmp/upx)" >> $GITHUB_PATH
|
||||||
|
|
||||||
/tmp/upx/upx.exe --version
|
/tmp/upx/upx.exe --version
|
||||||
|
|
||||||
- name: Build self-contained executable
|
- name: Build self-contained executable
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
|
|||||||
Reference in New Issue
Block a user