-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI jobs testing fvcbm under different environments
- Loading branch information
Showing
1 changed file
with
106 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,106 @@ | ||
# Github Actions configuration | ||
name: CI | ||
|
||
permissions: {} | ||
|
||
on: | ||
# Trigger the workflow on push or pull requests, but only for the | ||
# master and ci branches | ||
push: | ||
branches: | ||
- master | ||
- ci | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
MAKEFLAGS: -j 2 | ||
|
||
jobs: | ||
build-22_04: | ||
runs-on: ubuntu-22.04 | ||
# Run them all, even if one fails | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Install deps' | ||
continue-on-error: true | ||
run: > | ||
sudo apt-get update -y && | ||
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-suggests --no-install-recommends | ||
make | ||
clang | ||
gcc-10-i686-linux-gnu | ||
libc6-dev-i386-cross | ||
gcc-mingw-w64 | ||
wine | ||
dos2unix | ||
qemu-user | ||
gcc-10-aarch64-linux-gnu | ||
gcc-10-arm-linux-gnueabi | ||
gcc-10-powerpc-linux-gnu | ||
gcc-10-powerpc64-linux-gnu | ||
- name: 'Install scripts' | ||
continue-on-error: true | ||
run: | | ||
cat >wine-wrapper <<EOF | ||
#!/bin/bash | ||
set -o pipefail | ||
wine "$@" | dos2unix | ||
EOF | ||
chmod 755 wine-wrapper | ||
- name: 'Compile with gcc (default)' | ||
continue-on-error: true | ||
run: make linux | ||
- name: 'Run tests with gcc' | ||
continue-on-error: true | ||
run: make test | ||
- name: 'Compile with clang' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=clang | ||
- name: 'Run tests with clang' | ||
continue-on-error: true | ||
run: make test | ||
- name: 'Compile with gcc 32-bit' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=i686-linux-gnu-gcc-10 LINUX_CFLAGS='-m32 -O2 -DUNIX -Wall -Wshadow -Wpedantic -Wcast-qual -Wcast-align -Wwrite-strings -Wno-attributes' LDFLAGS=-static | ||
- name: 'Run tests with gcc 32-bit' | ||
continue-on-error: true | ||
run: make test | ||
- name: 'Compile with gcc-aarch64' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=aarch64-linux-gnu-gcc-10 LDFLAGS=-static | ||
- name: 'Run tests with gcc-aarch64' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=qemu-aarch64 | ||
- name: 'Compile with gcc-arm' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=arm-linux-gnueabi-gcc-10 LDFLAGS=-static | ||
- name: 'Run tests with gcc-arm' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=qemu-arm | ||
- name: 'Compile with gcc-powerpc' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=powerpc-linux-gnu-gcc-10 LDFLAGS=-static | ||
- name: 'Run tests with gcc-powerpc' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=qemu-ppc | ||
- name: 'Compile with gcc-powerpc64' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=powerpc64-linux-gnu-gcc-10 LDFLAGS=-static | ||
- name: 'Run tests with gcc-powerpc64' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=qemu-ppc64 | ||
- name: 'Compile with mingw32' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=x86_64-w64-mingw32-gcc | ||
- name: 'Run tests with mingw32+wine' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=./wine-wrapper | ||
- name: 'Compile with mingw32-posix' | ||
continue-on-error: true | ||
run: make clean && make linux LINUX_CC=x86_64-w64-mingw32-gcc-10-posix | ||
- name: 'Run tests with mingw32-posix+wine' | ||
continue-on-error: true | ||
run: make test TESTWRAPPER=./wine-wrapper |