CI updates

This commit is contained in:
Markus F.X.J. Oberhumer
2023-11-01 08:48:27 +01:00
parent e964d4acf3
commit 3b7d25ac49
7 changed files with 136 additions and 79 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ env:
CTEST_OUTPUT_ON_FAILURE: "ON"
DEBIAN_FRONTEND: noninteractive
UPX_CMAKE_BUILD_FLAGS: --verbose
# 2023-10-30
ZIG_DIST_VERSION: 0.12.0-dev.1350+91e117697
# 2023-11-01
ZIG_DIST_VERSION: 0.12.0-dev.1369+a09ba455c
jobs:
job-rebuild-and-verify-stubs:
+1 -1
View File
@@ -17,5 +17,5 @@ jobs:
uses: actions/checkout@v4
with: { submodules: false }
- name: 'Spell check with crate-ci/typos'
uses: crate-ci/typos@c004e98018d8621614d1ca516eed8ca2d04b365a # v1.16.20
uses: crate-ci/typos@47dd2976043bd5c76a33aa9300b328a176a1d6f7 # v1.16.21
with: { config: ./.github/typos_config.toml }
@@ -19,14 +19,15 @@ jobs:
fail-fast: false
matrix:
include:
# cl (msvc)
# cl (MSVC)
- { os: windows-2019, cc: cl, cxx: cl, vsversion: 2019, arch: amd64 }
- { os: windows-2019, cc: cl, cxx: cl, vsversion: 2019, arch: amd64_arm64 }
- { os: windows-2019, cc: cl, cxx: cl, vsversion: 2019, arch: amd64_x86 }
- { os: windows-2022, cc: cl, cxx: cl, vsversion: 2022, arch: amd64 }
- { os: windows-2022, cc: cl, cxx: cl, vsversion: 2022, arch: amd64_arm64 }
- { os: windows-2022, cc: cl, cxx: cl, vsversion: 2022, arch: amd64_x86 }
# clang-cl
# clang-cl (from MSVC)
- { os: windows-2019, cc: clang-cl, cxx: clang-cl, vsversion: 2019, arch: amd64 }
- { os: windows-2022, cc: clang-cl, cxx: clang-cl, vsversion: 2022, arch: amd64 }
# clang
- { os: windows-2022, cc: clang, cxx: 'clang++', arch: amd64, xflags: '-static' }
+53
View File
@@ -0,0 +1,53 @@
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
# BS BuildSystem: build misc
name: 'Weekly CI BS - Misc'
on:
schedule: [cron: '40 1 * * 3'] # run weekly Wednesday 01:50 UTC
workflow_dispatch:
env:
CMAKE_REQUIRED_QUIET: "OFF"
CTEST_OUTPUT_ON_FAILURE: "ON"
DEBIAN_FRONTEND: noninteractive
jobs:
job-bs-misc: # uses cmake + make
if: github.repository_owner == 'upx'
strategy:
fail-fast: false
matrix:
container:
- 'alpine:3.18'
- 'i386/alpine:3.18'
cc:
- 'clang'
- 'gcc'
cppflags:
- '-DWITH_XSPAN=0'
- '-DWITH_XSPAN=1'
- '-DWITH_XSPAN=2'
- '-DDOCTEST_CONFIG_DISABLE'
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- name: ${{ format('Install packages {0}', matrix.container) }}
run: 'apk update && apk upgrade && apk add clang cmake g++ git make'
- name: ${{ format('Check out UPX {0} source code', github.ref_name) }}
run: |
# this seems to be needed when running in a container (beause of UID mismatch??)
git config --global --add safe.directory '*'
git clone --branch "$GITHUB_REF_NAME" --depth 1 https://github.com/upx/upx .
git submodule update --init
# set environment
xflags="-static ${{ matrix.cppflags }}"
case ${{ matrix.cc }} in
clang) CC="clang $xflags"; CXX="clang++ $xflags" ;;
gcc) CC="gcc $xflags"; CXX="g++ $xflags" ;;
*) CC=false; CXX=false ;;
esac
echo -e "CC=$CC\nCXX=$CXX" >> $GITHUB_ENV
- name: 'Build Debug'
run: 'make debug && ctest --test-dir build/debug'
- name: 'Build Release'
if: success() || failure() # run this step even if the previous step failed
run: 'make release && ctest --test-dir build/debug'
+2 -2
View File
@@ -11,8 +11,8 @@ env:
CMAKE_REQUIRED_QUIET: "OFF"
CTEST_OUTPUT_ON_FAILURE: "ON"
DEBIAN_FRONTEND: noninteractive
# 2023-10-30
ZIG_DIST_VERSION: 0.12.0-dev.1350+91e117697
# 2023-11-01
ZIG_DIST_VERSION: 0.12.0-dev.1369+a09ba455c
jobs:
job-linux-zigcc: # uses cmake + make