-
Notifications
You must be signed in to change notification settings - Fork 14
89 lines (85 loc) · 2.67 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
qemu-ppc64le-builds:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
image:
- docker.io/fedora:rawhide
- docker.io/fedora:latest
- docker.io/alpine:latest
cc: [gcc, clang]
arch: [ppc64le]
include:
- image: docker.io/alpine:latest
arg: --no-abi-check
steps:
- uses: actions/checkout@v3
- name: Register problem matchers
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
- name: Install tools
run: |
sudo apt-get update -qy
sudo apt-get install -y qemu-user-static
- name: Build and test
run: |
set -eux
tools/build-with --distro=${{ matrix.image }} --cc=${{ matrix.cc }} --emulate=${{ matrix.arch }} ${{ matrix.arg }} --no-distcheck
native-builds:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
image:
- docker.io/fedora:rawhide
- docker.io/fedora:latest
cc: [gcc, clang]
cflags:
- '-Werror'
- '-Werror -Og -fsanitize=address -fsanitize=undefined'
steps:
- uses: actions/checkout@v3
- name: Register problem matchers
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
- name: Build and test
run: |
set -eux
tools/build-with --distro=${{ matrix.image }} --cc=${{ matrix.cc }} --cflags='${{ matrix.cflags }}' --install libasan --install libubsan --install compiler-rt
cross-builds:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
build:
- name: ppc64le
cc_cmd: powerpc64le-linux-gnu-gcc
cc_pkg: gcc-powerpc64le-linux-gnu
libc_pkg: libc6-dev-ppc64el-cross
- name: ppc64
cc_cmd: powerpc64-linux-gnu-gcc
cc_pkg: gcc-powerpc64-linux-gnu
libc_pkg: libc6-dev-ppc64-cross
- name: ppc32
cc_cmd: powerpc-linux-gnu-gcc
cc_pkg: gcc-powerpc-linux-gnu
libc_pkg: libc6-dev-powerpc-cross
image:
- docker.io/debian:unstable
- docker.io/debian:testing
- docker.io/debian:stable
steps:
- uses: actions/checkout@v3
- name: Register problem matchers
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
- name: Build and test
run: |
set -eux
tools/build-with --distro=${{ matrix.image }} --cc=${{ matrix.build.cc_cmd }} --install ${{ matrix.build.cc_pkg }} --install ${{ matrix.build.libc_pkg }} --no-tests