Files
libunwind/.github/workflows/CI-unix.yml
dependabot[bot] 659283ff17 Bump the github-actions group with 4 updates
Bumps the github-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [jirutka/setup-alpine](https://github.com/jirutka/setup-alpine), [github/codeql-action](https://github.com/github/codeql-action) and [actions/stale](https://github.com/actions/stale).


Updates `actions/checkout` from 6.0.0 to 6.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...8e8c483db8)

Updates `jirutka/setup-alpine` from 1.3.0 to 1.4.1
- [Release notes](https://github.com/jirutka/setup-alpine/releases)
- [Commits](cf5fddcea4...ae3b3ddba3)

Updates `github/codeql-action` from 4.31.5 to 4.31.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](fdbfb4d275...5d4e8d1aca)

Updates `actions/stale` from 10.1.0 to 10.1.1
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](5f858e3efb...997185467f)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: jirutka/setup-alpine
  dependency-version: 1.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.31.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-version: 10.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 11:10:29 -05:00

225 lines
6.8 KiB
YAML

name: CI - Unix
permissions:
contents: read
on:
pull_request:
paths:
- '**'
- '!README'
- '!INSTALL'
- '!NEWS'
- '!doc/**'
- '!.**'
- '.github/workflows/CI-unix.yml'
push:
branches:
- v[0-9].*
- master
jobs:
build-gnu-native:
runs-on: ubuntu-22.04
name: ${{ matrix.target.arch }}-linux-gnu (native) ${{ matrix.toolchain.compiler }} ${{ matrix.optimization.CFLAGS }}
strategy:
fail-fast: false
matrix:
target:
- { arch: i686, triple: i686-pc-linux-gnu, CFLAGS: -m32 }
- { arch: x86_64, triple: x86_64-pc-linux-gnu, CFLAGS: }
toolchain:
- { compiler: gcc, CC: gcc-12, CXX: g++-12 }
- { compiler: clang, CC: clang-13, CXX: clang++-13 }
optimization:
- { CFLAGS: -O0 }
- { CFLAGS: -O3 }
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install ${{ matrix.target.triple }} Toolchain
if: ${{ matrix.target.arch }} = 'i686'
run: |
sudo apt update
sudo apt install -y g++-12-multilib abigail-tools
- name: Configure
run: |
set -x
autoreconf -i
mkdir build
cd build
../configure --build=x86_64-pc-linux-gnu --host=${{ matrix.target.triple }} --enable-debug
env:
CC: ${{ matrix.toolchain.CC }}
CXX: ${{ matrix.toolchain.CXX }}
CFLAGS: "${{ matrix.target.CFLAGS }} ${{ matrix.optimization.CFLAGS }} -g -Wall -Wextra"
CXXFLAGS: "${{ matrix.target.CFLAGS }} ${{ matrix.optimization.CFLAGS }} -g -Wall -Wextra"
LDFLAGS: ${{ matrix.target.CFLAGS }}
- name: Build
run: |
make -C build -j
- name: Check ABI
if: ${{ success() }}
run:
make -C build/src abi-check
- name: Test (native)
if: ${{ success() }}
run: |
set -x
sudo bash -c 'echo core.%p.%p > /proc/sys/kernel/core_pattern'
ulimit -c unlimited
make -C build check -j8
env:
UNW_DEBUG_LEVEL: 4
- name: Show Logs
if: ${{ failure() }}
run: |
cat build/tests/test-suite.log 2>/dev/null
build-gnu-cross:
runs-on: ubuntu-22.04
name: ${{ matrix.config.target }}-linux-gnu (cross)
strategy:
fail-fast: false
matrix:
config:
- {target: aarch64, host: aarch64-linux-gnu, qemu: aarch64, gccver: 12 }
- {target: armhf, host: arm-linux-gnueabihf, qemu: arm, gccver: 12 }
- {target: arm, host: arm-linux-gnueabi, qemu: arm, gccver: 12 }
- {target: hppa, host: hppa-linux-gnu, qemu: hppa, gccver: 12 }
- {target: mips64el, host: mips64el-linux-gnuabi64, qemu: mips64el, gccver: 10 }
- {target: mips64, host: mips64-linux-gnuabi64, qemu: mips64, gccver: 10 }
- {target: mipsel, host: mipsel-linux-gnu, qemu: mipsel, gccver: 10 }
- {target: mips, host: mips-linux-gnu, qemu: mips, gccver: 10 }
- {target: ppc64, host: powerpc64-linux-gnu, qemu: ppc64, gccver: 12 }
- {target: ppc64le, host: powerpc64le-linux-gnu, qemu: ppc64le, gccver: 12 }
- {target: ppc, host: powerpc-linux-gnu, qemu: ppc, gccver: 12 }
- {target: riscv64, host: riscv64-linux-gnu, qemu: riscv64, gccver: 12 }
- {target: s390x, host: s390x-linux-gnu, qemu: s390x, gccver: 12 }
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install ${{ matrix.config.host }} Toolchain
run: |
sudo apt update
sudo apt install -y g++-${{ matrix.config.gccver }}-${{ matrix.config.host }} \
qemu-user-static \
abigail-tools
- name: Configure with ${{ matrix.config.cc }}
run: |
set -x
autoreconf -i
mkdir build
cd build
../configure --build=$(config/config.guess) \
--host=${{ matrix.config.host }} \
--with-testdriver="$(pwd)/libtool execute $(pwd)/../scripts/qemu-test-driver" \
--enable-debug
env:
CC: ${{ matrix.config.host }}-gcc-${{ matrix.config.gccver }}
CXX: ${{ matrix.config.host }}-g++-${{ matrix.config.gccver }}
- name: Build
run: |
make -C build -j
env:
CFLAGS: "-Wall -Wextra -g -Og"
- name: ABI Check
run: |
case ${{ matrix.config.target }} in
aarch64|riscv*|s390x|x86*)
make -C build/src abi-check
;;
*)
srcdir=$(pwd)
cd build/tests
./check-namespace.sh
;;
esac
- name: Test
run: |
set -x
sudo bash -c 'echo core.%p.%p > /proc/sys/kernel/core_pattern'
ulimit -c unlimited
cd build
make check LOG_DRIVER_FLAGS="--qemu-arch ${{ matrix.config.qemu }}" \
QEMU_LD_PREFIX="$CROSS_LIB" \
LDFLAGS="-L$CROSS_LIB/lib"
env:
UNW_DEBUG_LEVEL: 4
CROSS_LIB: "/usr/${{ matrix.config.host }}"
- name: Show Logs
if: ${{ failure() }}
run: |
cat build/tests/test-suite.log 2>/dev/null
build-musl-native:
runs-on: ubuntu-latest
name: ${{ matrix.arch }}-linux-musl (native)
strategy:
fail-fast: false
matrix:
arch: [aarch64, ppc64le, riscv64, x86_64]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Alpine Linux
uses: jirutka/setup-alpine@ae3b3ddba35054804fc4a3507b519fa7e8152050 # v1.4.1
with:
branch: edge
arch: ${{ matrix.arch }}
packages: >
autoconf
automake
build-base
libtool
libucontext-dev
linux-headers
xz-dev
shell-name: alpine.sh
- name: Configure
run: |
set -x
gcc --version
autoreconf -i
./configure --enable-debug
env:
CFLAGS: -g -O0 -Wall -Wextra
CXXFLAGS: -g -O0
LDFLAGS: -g -O0
shell: alpine.sh {0}
- name: Build
run: |
make -j
shell: alpine.sh {0}
- name: Test
if: ${{ success() }}
run: |
make check
env:
UNW_DEBUG_LEVEL: 5
shell: alpine.sh {0}
- name: Show Logs
if: ${{ failure() }}
run: |
cat tests/test-suite.log 2>/dev/null
shell: alpine.sh {0}