mirror of https://github.com/upx/upx.git
CI updates
This commit is contained in:
parent
19c6b969ab
commit
b094ad4f2b
|
@ -14,7 +14,7 @@ env:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
UPX_CMAKE_BUILD_FLAGS: --verbose
|
UPX_CMAKE_BUILD_FLAGS: --verbose
|
||||||
# 2023-10-30
|
# 2023-10-30
|
||||||
ZIG_DIST_VERSION: 0.12.0-dev.1349+fa022d1ec
|
ZIG_DIST_VERSION: 0.12.0-dev.1350+91e117697
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job-rebuild-and-verify-stubs:
|
job-rebuild-and-verify-stubs:
|
||||||
|
|
|
@ -14,7 +14,14 @@ jobs:
|
||||||
if: github.repository_owner == 'upx'
|
if: github.repository_owner == 'upx'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: {container: ['alpine:3.16','alpine:3.17','alpine:3.18','alpine:edge','i386/alpine:edge']}
|
matrix:
|
||||||
|
include:
|
||||||
|
- container: 'alpine:3.16'
|
||||||
|
- container: 'alpine:3.17'
|
||||||
|
- container: 'alpine:3.18'
|
||||||
|
- container: 'alpine:edge'
|
||||||
|
- container: 'i386/alpine:3.18'
|
||||||
|
- container: 'i386/alpine:edge'
|
||||||
name: ${{ format('Analyze clang-analyzer {0}', matrix.container) }}
|
name: ${{ format('Analyze clang-analyzer {0}', matrix.container) }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
|
@ -14,7 +14,12 @@ jobs:
|
||||||
if: github.repository_owner == 'upx'
|
if: github.repository_owner == 'upx'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: {container: ['alpine:3.18','alpine:edge','i386/alpine:edge']}
|
matrix:
|
||||||
|
include:
|
||||||
|
- container: 'alpine:3.18'
|
||||||
|
- container: 'alpine:edge'
|
||||||
|
- container: 'i386/alpine:3.18'
|
||||||
|
- container: 'i386/alpine:edge'
|
||||||
name: ${{ format('Analyze clang-tidy {0}', matrix.container) }}
|
name: ${{ format('Analyze clang-tidy {0}', matrix.container) }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- name: ${{ format('Build clang {0}', matrix.container) }}
|
- name: ${{ format('Build clang {0}', matrix.container) }}
|
||||||
run: |
|
run: |
|
||||||
apk update && apk upgrade && apk add clang cmake make
|
apk update && apk upgrade && apk add clang cmake make
|
||||||
wget https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-src.tar.xz
|
wget https://github.com/upx/upx/releases/download/v4.2.0/upx-4.2.0-src.tar.xz
|
||||||
tar -xoaf upx-*-src.tar.xz
|
tar -xoaf upx-*-src.tar.xz
|
||||||
cd upx-*-src
|
cd upx-*-src
|
||||||
make build/debug CC="clang -static" CXX="clang++ -static"
|
make build/debug CC="clang -static" CXX="clang++ -static"
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- name: ${{ format('Build gcc {0}', matrix.container) }}
|
- name: ${{ format('Build gcc {0}', matrix.container) }}
|
||||||
run: |
|
run: |
|
||||||
apk update && apk upgrade && apk add cmake g++ make
|
apk update && apk upgrade && apk add cmake g++ make
|
||||||
wget https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-src.tar.xz
|
wget https://github.com/upx/upx/releases/download/v4.2.0/upx-4.2.0-src.tar.xz
|
||||||
tar -xoaf upx-*-src.tar.xz
|
tar -xoaf upx-*-src.tar.xz
|
||||||
cd upx-*-src
|
cd upx-*-src
|
||||||
make build/debug CC="gcc -static" CXX="g++ -static"
|
make build/debug CC="gcc -static" CXX="g++ -static"
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
|
||||||
|
|
||||||
|
name: 'Test - YAML check'
|
||||||
|
on: [workflow_dispatch]
|
||||||
|
env:
|
||||||
|
CMAKE_REQUIRED_QUIET: "OFF"
|
||||||
|
CTEST_OUTPUT_ON_FAILURE: "ON"
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
job-yaml-check:
|
||||||
|
if: true
|
||||||
|
strategy: { matrix: { container: ['alpine:3.18','alpine:edge'] } }
|
||||||
|
name: ${{ format('{0}', matrix.container) }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: ${{ matrix.container }}
|
||||||
|
steps:
|
||||||
|
- name: ${{ format('Install packages {0}', matrix.container) }}
|
||||||
|
run: |
|
||||||
|
apk update && apk upgrade && apk add bash git yq ytt
|
||||||
|
# this seems to be needed when running in a container (beause of UID mismatch??)
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
|
- name: 'Check out code'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with: { submodules: false }
|
||||||
|
- name: ${{ format('YAML check {0}', matrix.container) }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
for f in $(find . -type f -iname '*.yml'); do
|
||||||
|
echo "===== checking file $f"
|
||||||
|
yq < "$f" > /dev/null
|
||||||
|
ytt -f- < "$f" > /dev/null
|
||||||
|
done
|
|
@ -12,7 +12,7 @@ env:
|
||||||
CTEST_OUTPUT_ON_FAILURE: "ON"
|
CTEST_OUTPUT_ON_FAILURE: "ON"
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
# 2023-10-30
|
# 2023-10-30
|
||||||
ZIG_DIST_VERSION: 0.12.0-dev.1349+fa022d1ec
|
ZIG_DIST_VERSION: 0.12.0-dev.1350+91e117697
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
job-linux-zigcc: # uses cmake + make
|
job-linux-zigcc: # uses cmake + make
|
||||||
|
@ -21,17 +21,18 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
# zig BUG: -fPIE is currently broken
|
||||||
- { zig_target: aarch64-linux-musl }
|
- { zig_target: aarch64-linux-musl }
|
||||||
- { zig_target: aarch64-linux-musl, zig_pic: -fPIE }
|
# { zig_target: aarch64-linux-musl, zig_pic: -fPIE }
|
||||||
- { zig_target: aarch64-macos-none }
|
- { zig_target: aarch64-macos-none }
|
||||||
- { zig_target: aarch64-macos.11.0-none }
|
- { zig_target: aarch64-macos.11.0-none }
|
||||||
- { zig_target: aarch64-macos.12.0-none }
|
- { zig_target: aarch64-macos.12.0-none }
|
||||||
- { zig_target: aarch64-macos.13.0-none }
|
- { zig_target: aarch64-macos.13.0-none }
|
||||||
- { zig_target: aarch64-windows-gnu }
|
- { zig_target: aarch64-windows-gnu }
|
||||||
- { zig_target: arm-linux-musleabihf }
|
- { zig_target: arm-linux-musleabihf }
|
||||||
- { zig_target: arm-linux-musleabihf, zig_pic: -fPIE }
|
# { zig_target: arm-linux-musleabihf, zig_pic: -fPIE }
|
||||||
- { zig_target: i386-linux-musl }
|
- { zig_target: i386-linux-musl }
|
||||||
- { zig_target: i386-linux-musl, zig_pic: -fPIE }
|
# { zig_target: i386-linux-musl, zig_pic: -fPIE }
|
||||||
- { zig_target: i386-windows-gnu }
|
- { zig_target: i386-windows-gnu }
|
||||||
- { zig_target: mips-linux-musl }
|
- { zig_target: mips-linux-musl }
|
||||||
- { zig_target: mipsel-linux-musl }
|
- { zig_target: mipsel-linux-musl }
|
||||||
|
@ -39,7 +40,7 @@ jobs:
|
||||||
- { zig_target: powerpc64-linux-musl }
|
- { zig_target: powerpc64-linux-musl }
|
||||||
- { zig_target: powerpc64le-linux-musl }
|
- { zig_target: powerpc64le-linux-musl }
|
||||||
- { zig_target: x86_64-linux-musl }
|
- { zig_target: x86_64-linux-musl }
|
||||||
- { zig_target: x86_64-linux-musl, zig_pic: -fPIE }
|
# { zig_target: x86_64-linux-musl, zig_pic: -fPIE }
|
||||||
- { zig_target: x86_64-macos-none }
|
- { zig_target: x86_64-macos-none }
|
||||||
- { zig_target: x86_64-macos.11.0-none }
|
- { zig_target: x86_64-macos.11.0-none }
|
||||||
- { zig_target: x86_64-macos.12.0-none }
|
- { zig_target: x86_64-macos.12.0-none }
|
||||||
|
|
|
@ -19,18 +19,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- container: 'alpine:3.18'
|
- { container: 'alpine:3.18', release: debug, qemu: 'qemu-x86_64 -cpu Westmere' }
|
||||||
release: debug
|
- { container: 'alpine:3.18', release: release, qemu: 'qemu-x86_64 -cpu Westmere' }
|
||||||
qemu: 'qemu-x86_64 -cpu Westmere'
|
- { container: 'alpine:edge', release: release, qemu: 'qemu-x86_64 -cpu Westmere' }
|
||||||
- container: 'alpine:3.18'
|
- { container: 'i386/alpine:edge', release: release, qemu: 'qemu-i386' }
|
||||||
release: release
|
|
||||||
qemu: 'qemu-x86_64 -cpu Westmere'
|
|
||||||
- container: 'alpine:edge'
|
|
||||||
release: release
|
|
||||||
qemu: 'qemu-x86_64 -cpu Westmere'
|
|
||||||
- container: 'i386/alpine:edge'
|
|
||||||
release: release
|
|
||||||
qemu: 'qemu-i386'
|
|
||||||
name: ${{ format('{0} {1}', matrix.container, matrix.release) }}
|
name: ${{ format('{0} {1}', matrix.container, matrix.release) }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
|
@ -42,8 +42,13 @@ private:
|
||||||
#define CSelf PtrOrSpanOrNull
|
#define CSelf PtrOrSpanOrNull
|
||||||
typedef CSelf<T> Self;
|
typedef CSelf<T> Self;
|
||||||
// core config
|
// core config
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
static constexpr bool configRequirePtr = false;
|
||||||
|
static constexpr bool configRequireBase = false;
|
||||||
|
#else
|
||||||
enum { configRequirePtr = false };
|
enum { configRequirePtr = false };
|
||||||
enum { configRequireBase = false };
|
enum { configRequireBase = false };
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xspan_impl_common.h"
|
#include "xspan_impl_common.h"
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -42,8 +42,13 @@ private:
|
||||||
#define CSelf PtrOrSpan
|
#define CSelf PtrOrSpan
|
||||||
typedef CSelf<T> Self;
|
typedef CSelf<T> Self;
|
||||||
// core config
|
// core config
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
static constexpr bool configRequirePtr = true;
|
||||||
|
static constexpr bool configRequireBase = false;
|
||||||
|
#else
|
||||||
enum { configRequirePtr = true };
|
enum { configRequirePtr = true };
|
||||||
enum { configRequireBase = false };
|
enum { configRequireBase = false };
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xspan_impl_common.h"
|
#include "xspan_impl_common.h"
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -42,8 +42,13 @@ private:
|
||||||
#define CSelf Span
|
#define CSelf Span
|
||||||
typedef CSelf<T> Self;
|
typedef CSelf<T> Self;
|
||||||
// core config
|
// core config
|
||||||
|
#if __cplusplus >= 201103L
|
||||||
|
static constexpr bool configRequirePtr = true;
|
||||||
|
static constexpr bool configRequireBase = true;
|
||||||
|
#else
|
||||||
enum { configRequirePtr = true };
|
enum { configRequirePtr = true };
|
||||||
enum { configRequireBase = true };
|
enum { configRequireBase = true };
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xspan_impl_common.h"
|
#include "xspan_impl_common.h"
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue