mirror of
https://github.com/upx/upx.git
synced 2026-05-07 20:12:50 +00:00
CI updates
This commit is contained in:
@@ -142,6 +142,7 @@ jobs:
|
||||
- name: Run test suite
|
||||
run: |
|
||||
jobs="debug release"
|
||||
echo "===== parallel jobs: $jobs"
|
||||
parallel -kv --lb 'cd build/{} && bash ../../misc/testsuite/upx_testsuite_1.sh' ::: $jobs
|
||||
- run: UPX_DEBUG_DOCTEST_VERBOSE=1 ./build/debug/upx --sysinfo -vv
|
||||
- run: UPX_DEBUG_DOCTEST_VERBOSE=1 ./build/release/upx --sysinfo -vv
|
||||
@@ -178,8 +179,8 @@ jobs:
|
||||
- run: clang++ -E -x c++ -dM /dev/null | LC_ALL=C sort # list predefined macros for C++
|
||||
- run: gcc -E -x c -dM /dev/null | LC_ALL=C sort # list predefined macros for C
|
||||
- run: g++ -E -x c++ -dM /dev/null | LC_ALL=C sort # list predefined macros for C++
|
||||
- run: make build/extra/gcc/all
|
||||
- run: make build/extra/clang/all
|
||||
- run: make build/extra/gcc/all
|
||||
- run: ls -l build/*/*/*/upx* || true
|
||||
- run: size build/*/*/*/upx* || true
|
||||
- run: file build/*/*/*/upx* || true
|
||||
@@ -282,8 +283,8 @@ jobs:
|
||||
- run: clang++ -E -x c++ -dM /dev/null | LC_ALL=C sort # list predefined macros for C++
|
||||
- run: gcc -E -x c -dM /dev/null | LC_ALL=C sort # list predefined macros for C
|
||||
- run: g++ -E -x c++ -dM /dev/null | LC_ALL=C sort # list predefined macros for C++
|
||||
- run: make build/extra/gcc/all
|
||||
- run: make build/extra/clang/all
|
||||
- run: make build/extra/gcc/all
|
||||
- run: make build/extra/gcc-m32/all
|
||||
if: ${{ matrix.use_extra }}
|
||||
- run: make build/extra/gcc-mx32/all
|
||||
@@ -746,7 +747,7 @@ jobs:
|
||||
- name: ${{ format('Install packages {0}', env.container) }}
|
||||
shell: sh
|
||||
run: |
|
||||
apk update && apk upgrade && apk add bash cmake curl dmidecode file gdb git make parallel patch strace sudo tar util-linux xz zstd
|
||||
apk update && apk upgrade && apk add bash cmake curl dmidecode file gdb git make parallel patch strace sudo tar tree util-linux xz zstd
|
||||
# set PATH like in Ubuntu
|
||||
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
|
||||
git config --global --add safe.directory '*' # needed when running in a container
|
||||
@@ -830,6 +831,9 @@ jobs:
|
||||
- run: set -x; zig version; zig-cc --version || true; zig-cxx --version || true
|
||||
- run: zig-cc -E -x c -dM /dev/null # list predefined macros for C
|
||||
- run: zig-cxx -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||
- run: cd ~/.local/bin/zig-*/. && echo "$PWD" && ls -laF
|
||||
- run: cd ~/.local/bin/zig-*/. && echo "$PWD" && tree -sF -d --du
|
||||
# run: cd ~/.local/bin/zig-*/. && echo "$PWD" && tree -sF --du
|
||||
- name: ${{ format('Build Release with zig-cc -target {0} {1}', env.ZIG_TARGET, env.ZIG_PIC) }}
|
||||
run: |
|
||||
make UPX_XTARGET=zig/${ZIG_TARGET}${ZIG_PIC} xtarget/release \
|
||||
@@ -839,6 +843,7 @@ jobs:
|
||||
make UPX_XTARGET=zig/${ZIG_TARGET}${ZIG_PIC} xtarget/debug \
|
||||
CC="zig-cc" CXX="zig-cxx" CMAKE_AR="$HOME/.local/bin/zig-ar" CMAKE_RANLIB="$HOME/.local/bin/zig-ranlib"
|
||||
- run: ls -l build/*/*/*/upx* || true
|
||||
# run: size build/*/*/*/upx* || true
|
||||
- run: file build/*/*/*/upx* || true
|
||||
- name: ${{ format('Make artifact from upx-{0}-{1}', github.ref_name, env.UPX_GITREV_SHORT) }}
|
||||
run: |
|
||||
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
- name: ${{ format('Install packages {0}', matrix.container) }}
|
||||
run: |
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install -y --no-install-recommends bash ca-certificates cmake curl file git make parallel strace tar time tree util-linux xz-utils zstd
|
||||
apt-get install -y --no-install-recommends bash ca-certificates cmake curl file git make ninja-build parallel strace tar time tree util-linux xz-utils zstd
|
||||
apt-get install -y qemu-user ${{ matrix.target }}
|
||||
# make sure that we use posix-threads (pthread/winpthreads) and NOT win32-threads
|
||||
for f in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do
|
||||
|
||||
@@ -63,14 +63,14 @@ jobs:
|
||||
llvm_version: 21.1.8
|
||||
use_arm64ec: true
|
||||
url: 'https://github.com/mstorsjo/llvm-mingw/releases/download/20251216/llvm-mingw-20251216-ucrt-ubuntu-22.04-x86_64.tar.xz'
|
||||
- name: llvm-mingw-20260421-msvcrt
|
||||
llvm_version: 22.1.4
|
||||
- name: llvm-mingw-20260505-msvcrt
|
||||
llvm_version: 22.1.5
|
||||
use_arm64ec: true
|
||||
url: 'https://github.com/mstorsjo/llvm-mingw/releases/download/20260421/llvm-mingw-20260421-msvcrt-ubuntu-22.04-x86_64.tar.xz'
|
||||
- name: llvm-mingw-20260421-ucrt
|
||||
llvm_version: 22.1.4
|
||||
url: 'https://github.com/mstorsjo/llvm-mingw/releases/download/20260505/llvm-mingw-20260505-msvcrt-ubuntu-22.04-x86_64.tar.xz'
|
||||
- name: llvm-mingw-20260505-ucrt
|
||||
llvm_version: 22.1.5
|
||||
use_arm64ec: true
|
||||
url: 'https://github.com/mstorsjo/llvm-mingw/releases/download/20260421/llvm-mingw-20260421-ucrt-ubuntu-22.04-x86_64.tar.xz'
|
||||
url: 'https://github.com/mstorsjo/llvm-mingw/releases/download/20260505/llvm-mingw-20260505-ucrt-ubuntu-22.04-x86_64.tar.xz'
|
||||
|
||||
env:
|
||||
container: 'ubuntu:26.04'
|
||||
@@ -89,13 +89,7 @@ jobs:
|
||||
run: |
|
||||
dpkg --add-architecture i386
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install -y --no-install-recommends bash ca-certificates cmake curl file git make parallel strace tar time tree util-linux xz-utils zstd
|
||||
- run: dpkg -l
|
||||
- name: ${{ format('Install Wine {0}', env.container) }}
|
||||
run: |
|
||||
apt-get install -y wine wine32:i386 wine64
|
||||
ls -ldF /usr/bin/wine* /etc/alternatives/*wine* || true
|
||||
mkdir -p -v ~/.wine && wineboot --init
|
||||
apt-get install -y --no-install-recommends bash ca-certificates cmake curl file git make ninja-build parallel strace tar time tree util-linux xz-utils zstd
|
||||
- run: dpkg -l
|
||||
- name: ${{ format('Check out {0} source code', github.ref_name) }}
|
||||
run: |
|
||||
@@ -199,6 +193,13 @@ jobs:
|
||||
uses: actions/upload-artifact@v6
|
||||
with: { name: '${{ env.artifact_name }}', path: tmp/artifact }
|
||||
|
||||
- name: ${{ format('Install Wine {0}', env.container) }}
|
||||
run: |
|
||||
apt-get install -y wine wine32:i386 wine64
|
||||
ls -ldF /usr/bin/wine* /etc/alternatives/*wine* || true
|
||||
mkdir -p -v ~/.wine && wineboot --init
|
||||
- run: dpkg -l
|
||||
|
||||
- name: 'Run ctest tests i686 static with Wine'
|
||||
run: |
|
||||
make UPX_XTARGET=llvm-mingw/i686-w64-mingw32-clang-static xtarget/all+test
|
||||
@@ -210,7 +211,6 @@ jobs:
|
||||
ls -ld ./build/*/*/*/XTesting/*/* || true
|
||||
rm -rf ./build/*/*/*/XTesting/*/*
|
||||
|
||||
- run: ulimit -a || true
|
||||
- name: 'Run test suite under Wine'
|
||||
#if: false
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user