-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add arch-matrix build QA workflow (just 32-bit and 64-bit x86 arc…
…hitectures for now) This is added to catch any 32-bit-related issues. We (upstream) are generally not using 32-bit architectures anymore, but downstream packagers still package software for 32-bit platforms. Let's not make their job more difficult than it already is.
- Loading branch information
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: Build QA - Arch Matrix | ||
|
||
|
||
|
||
on: | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- '**' | ||
- '!.github/**' | ||
- '.github/workflows/build-qa-arch-matrix.yml' | ||
- '!.gitignore' | ||
- '!ChangeLog' | ||
- '!COPYING' | ||
- '!configure.scan' | ||
- '!dev-tools/**' | ||
- 'dev-tools/install-dev-software.sh' | ||
- 'dev-tools/libexec/get-release-*.sh' | ||
- '!doc/**' | ||
- '!etc/**' | ||
- '!install/**' | ||
- '!lib/*/IMPORT.defs' | ||
- '!lib/*/LICENSE' | ||
- '!README.md' | ||
|
||
push: | ||
branches: | ||
- master | ||
- force-github-action-run | ||
tags: | ||
- '*' | ||
paths: | ||
- '**' | ||
- '!.github/**' | ||
- '.github/workflows/build-qa-arch-matrix.yml' | ||
- '!.gitignore' | ||
- '!ChangeLog' | ||
- '!COPYING' | ||
- '!configure.scan' | ||
- '!dev-tools/**' | ||
- 'dev-tools/install-dev-software.sh' | ||
- 'dev-tools/libexec/get-release-*.sh' | ||
- '!doc/**' | ||
- '!etc/**' | ||
- '!install/**' | ||
- '!lib/*/IMPORT.defs' | ||
- '!lib/*/LICENSE' | ||
- '!README.md' | ||
|
||
|
||
|
||
jobs: | ||
build-qa-arch-matrix: | ||
|
||
|
||
|
||
### Define the matrix of architectures/platforms to run on | ||
# | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: linux/386 | ||
libdir: /lib/i386-linux-gnu | ||
- arch: linux/amd64 | ||
libdir: /lib/x86_64-linux-gnu | ||
|
||
|
||
|
||
### Define the environment to run in | ||
# | ||
name: Build on ${{matrix.arch}} | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: debian:bullseye | ||
options: --platform ${{ matrix.arch }} | ||
|
||
|
||
|
||
### | ||
### Steps to run | ||
### | ||
steps: | ||
|
||
|
||
|
||
### Fetch the code | ||
# | ||
# We're using @v1 here to support execution on 32-bit systems | ||
# | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Work around the fix for CVE-2022-24765 | ||
- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true | ||
|
||
|
||
|
||
### Make sure we're running on the right platform | ||
# | ||
- run: ls -lad ${{ matrix.libdir }} | ||
|
||
|
||
|
||
### Build | ||
# | ||
- run: ./dev-tools/install-dev-software.sh | ||
- run: ./bootstrap.sh | ||
- run: ./configure --enable-option-checking=fatal --enable-everything | ||
- run: make -j4 | ||
- run: make -j4 check | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: tests-directory | ||
path: tests/ |