mirror of
https://github.com/upx/upx.git
synced 2026-05-07 20:12:50 +00:00
CI updates
This commit is contained in:
@@ -111,7 +111,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
ls -ldF /etc/alternatives/*mingw* || true
|
ls -ldF /etc/alternatives/*mingw* || true
|
||||||
- run: dpkg -l
|
- run: dpkg -l
|
||||||
- name: Check out code
|
- name: ${{ format('Check out {0} source code', github.ref_name) }}
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory '*' # needed when running in a container
|
git config --global --add safe.directory '*' # needed when running in a container
|
||||||
git clone --branch "$GITHUB_REF_NAME" --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
git clone --branch "$GITHUB_REF_NAME" --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
||||||
|
|||||||
@@ -72,30 +72,32 @@ jobs:
|
|||||||
use_arm64ec: true
|
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/20260421/llvm-mingw-20260421-ucrt-ubuntu-22.04-x86_64.tar.xz'
|
||||||
|
|
||||||
name: ${{ format('{0} {1}', matrix.name, matrix.llvm_version) }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
#container: 'ubuntu:22.04'
|
|
||||||
container: 'ubuntu:26.04'
|
|
||||||
env:
|
env:
|
||||||
|
container: 'ubuntu:26.04'
|
||||||
CMAKE_SYSTEM_NAME: Windows
|
CMAKE_SYSTEM_NAME: Windows
|
||||||
xflags: -D_WIN32_WINNT=0x0601
|
xflags: -D_WIN32_WINNT=0x0601
|
||||||
#xflags: -D_WIN32_WINNT=0x0601 -DDOCTEST_CONFIG_DISABLE
|
#xflags: -D_WIN32_WINNT=0x0601 -DDOCTEST_CONFIG_DISABLE
|
||||||
|
|
||||||
|
name: ${{ format('{0} {1}', matrix.name, matrix.llvm_version) }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
#container: ${{ env.container }}
|
||||||
|
container: 'ubuntu:26.04'
|
||||||
steps:
|
steps:
|
||||||
- run: uname -a; pwd; id; umask
|
- run: uname -a; pwd; id; umask
|
||||||
- run: ulimit -a || true
|
- run: ulimit -a || true
|
||||||
- name: Install packages
|
- name: ${{ format('Install packages {0}', env.container) }}
|
||||||
run: |
|
run: |
|
||||||
dpkg --add-architecture i386
|
dpkg --add-architecture i386
|
||||||
apt-get update && apt-get upgrade -y
|
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 parallel strace tar time tree util-linux xz-utils zstd
|
||||||
- run: dpkg -l
|
- run: dpkg -l
|
||||||
- name: Install Wine
|
- name: ${{ format('Install Wine {0}', env.container) }}
|
||||||
run: |
|
run: |
|
||||||
apt-get install -y wine wine32:i386 wine64
|
apt-get install -y wine wine32:i386 wine64
|
||||||
ls -ldF /usr/bin/wine* /etc/alternatives/*wine* || true
|
ls -ldF /usr/bin/wine* /etc/alternatives/*wine* || true
|
||||||
mkdir -p -v ~/.wine && wineboot --init
|
mkdir -p -v ~/.wine && wineboot --init
|
||||||
- run: dpkg -l
|
- run: dpkg -l
|
||||||
- name: Check out code
|
- name: ${{ format('Check out {0} source code', github.ref_name) }}
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory '*' # needed when running in a container
|
git config --global --add safe.directory '*' # needed when running in a container
|
||||||
git clone --branch "$GITHUB_REF_NAME" --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
git clone --branch "$GITHUB_REF_NAME" --depth 1 "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
||||||
|
|||||||
@@ -456,6 +456,7 @@ inline void mem_clear(T *object) noexcept {
|
|||||||
static_assert(std::is_trivially_copyable_v<T>);
|
static_assert(std::is_trivially_copyable_v<T>);
|
||||||
constexpr size_t size = sizeof(*object);
|
constexpr size_t size = sizeof(*object);
|
||||||
static_assert(size >= 1 && size <= UPX_RSIZE_MAX_MEM);
|
static_assert(size >= 1 && size <= UPX_RSIZE_MAX_MEM);
|
||||||
|
// NOLINTNEXTLINE(bugprone-multi-level-implicit-pointer-conversion)
|
||||||
memset((void *) object, 0, size);
|
memset((void *) object, 0, size);
|
||||||
}
|
}
|
||||||
// disable some overloads
|
// disable some overloads
|
||||||
|
|||||||
Reference in New Issue
Block a user