From 49d6a8f94c999492693666fb2e56ff29f97e151d Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:35:55 +0200 Subject: [PATCH] Update release-arm32.yml --- .github/workflows/release-arm32.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-arm32.yml b/.github/workflows/release-arm32.yml index f3eb9c5..7fad5a2 100644 --- a/.github/workflows/release-arm32.yml +++ b/.github/workflows/release-arm32.yml @@ -17,6 +17,7 @@ jobs: ARCHIVE: arm-gcc13-musl-3_0 PLATFORM: arm-openipc-linux-musleabi_sdk-buildroot TOOLCHAIN: arm-openipc-linux-musleabi + VERSION: 4.2.3 steps: - uses: pozetroninc/github-action-get-latest-release@master @@ -50,16 +51,19 @@ jobs: echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV + wget -q https://github.com/upx/upx/releases/download/v$VERSION/upx-$VERSION-amd64_linux.tar.xz + tar -xf upx-$VERSION-amd64_linux.tar.xz --strip-components 1 + REL="${{ steps.ct-ng-release.outputs.release }}" echo "Got release $REL" wget -qO- https://github.com/OpenIPC/firmware/releases/download/latest/$ARCHIVE.tgz | \ tar xfz - -C /opt export PATH=/opt/$PLATFORM/bin:$PATH - sudo apt-get install -y cmake upx-ucl + sudo apt-get install -y cmake cmake -H. -Bbuild -DCMAKE_C_COMPILER=${TOOLCHAIN}-gcc -DCMAKE_BUILD_TYPE=Release cmake --build build - upx build/ipcinfo - upx build/ipctool + ./upx build/ipcinfo + ./upx build/ipctool cp build/ipctool ipctool-$GIT_HASH continue-on-error: true