-
Notifications
You must be signed in to change notification settings - Fork 55
103 lines (83 loc) · 2.44 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
# Controls when the workflow will run.
on:
# This allows the build to be triggered manually via the github UI.
workflow_dispatch:
# Push to any branch
push:
# Any pull request
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
host: [powerpc-linux-gnu, powerpc64-linux-gnu, powerpc64le-linux-gnu, x86_64-linux-gnu]
steps:
- uses: actions/checkout@v4
with:
repository: ibm-power-utilities/librtas
path: ./librtas
- name: Install powerpc cross compiler
if: matrix.host != 'x86_64-linux-gnu'
run: |
sudo apt update
sudo apt install -y gcc-${{ matrix.host }}
- name: Install libnuma-dev.x86_64
if: matrix.host == 'x86_64-linux-gnu'
run: sudo apt install -y libnuma-dev
- name: Build and install librtas
run: |
cd ./librtas
./autogen.sh
./configure --prefix=/usr --host=${{ matrix.host }} --build=x86_64-linux-gnu
make
sudo make install
cd ..
- uses: actions/checkout@v4
with:
repository: madler/zlib
ref: v1.2.11
path: ./zlib
- name: Build and install zlib for powerpc
if: matrix.host != 'x86_64-linux-gnu'
run: |
cd ./zlib
CHOST=${{ matrix.host }} ./configure --prefix=/usr
make
sudo make install
cd ..
- uses: actions/checkout@v4
with:
repository: numactl/numactl
ref: v2.0.14
path: ./numactl
- name: Build and install libnuma for powerpc
if: matrix.host != 'x86_64-linux-gnu'
run: |
cd ./numactl
./autogen.sh
./configure --prefix=/usr --host=${{ matrix.host }} --build=x86_64-linux-gnu
make
sudo make install
cd ..
- uses: actions/checkout@v4
- name: Register problem matchers
run: |
echo "::add-matcher::.github/problem-matchers/compiler-source.json"
- name: autogen
run: ./autogen.sh
- name: configure
run: |
./configure --prefix=/usr --host=${{ matrix.host }} --enable-werror --build=x86_64-linux-gnu CFLAGS='-O2 -g'
- name: Collect config.log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: config.log
path: ./config.log
- name: make
run: make V=1
- name: distcheck
run: |
make distcheck V=1 DISTCHECK_CONFIGURE_FLAGS='--enable-werror --host=${{ matrix.host }}'