-
-
Notifications
You must be signed in to change notification settings - Fork 230
139 lines (136 loc) · 4.09 KB
/
qemu_multiarch_linux.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Use, modification, and distribution are
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE.txt)
#
# Copyright René Ferdinand Rivera Morell 2020-2021.
name: 'Multiarch Linux (QEMU)'
on:
push:
branches: ["main", "release"]
paths-ignore:
[
".circleci/**",
".cirrus.yml",
".drone.star",
".semaphore/**",
".travis.yml",
"appveyor.yml",
"azure-pipelines.yml",
".ci/azp-*.yml",
".github/workflows/backport.yml",
".github/workflows/core_tests.yml",
".github/workflows/installer_*.yml",
".github/workflows/release_archives.yml",
]
jobs:
qemu-multiarch-linux:
strategy:
fail-fast: false
matrix:
include:
- {
name: "Alpine (aarch64)",
image: "multiarch/alpine:aarch64-latest-stable",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Alpine (armhf)",
image: "multiarch/alpine:armhf-latest-stable",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Alpine (arm64)",
image: "multiarch/alpine:arm64-latest-stable",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Alpine (ppc64le)",
image: "multiarch/alpine:ppc64le-latest-stable",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Alpine (s390x)",
image: "multiarch/alpine:s390x-latest-stable",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Ubuntu 20.04 Focal (armhf)",
image: "multiarch/ubuntu-debootstrap:armhf-focal",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Ubuntu 20.04 Focal (arm64)",
image: "multiarch/ubuntu-debootstrap:arm64-focal",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Ubuntu 20.04 Focal (ppc64el)",
image: "multiarch/ubuntu-debootstrap:ppc64el-focal",
cxx: "g++",
toolset: "gcc",
}
- {
name: "Debian 11 Bullseye (armhf)",
image: "multiarch/debian-debootstrap:armhf-bullseye",
cxx: "g++",
toolset: "gcc",
}
name: ${{ matrix.name }}
runs-on: ubuntu-latest
env:
CXX: ${{ matrix.cxx }}
CXXFLAGS: ${{ matrix.cxxflags }}
PACKAGES: ${{ matrix.packages }}
LLVM_OS: ${{ matrix.llvm_os }}
LLVM_VER: ${{ matrix.llvm_ver }}
TOOLSET: ${{ matrix.toolset }}
steps:
- name: "Checkout"
uses: actions/checkout@main
- name: "Install"
run: |
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get -o Acquire::Retries=3 -y install qemu-user-static
docker pull "${{ matrix.image }}"
- name: "Setup"
run: |
env | grep -v '^#' | xargs > docker-run-action.env
- name: "Info"
run: |
echo ">>>>> ENV:"
cat docker-run-action.env
echo ">>>>> WORKDIR: ${{ github.workspace }}"
ls -laF ${{ github.workspace }}
- name: "Run"
uses: addnab/docker-run-action@v3
with:
image: ${{ matrix.image }}
options: -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --env-file docker-run-action.env
run: |
set -e
uname -a
echo ">>>>>"
echo ">>>>> Install.."
echo ">>>>>"
./.ci/linux-cxx-install.sh
echo ">>>>>"
echo ">>>>> Build.."
echo ">>>>>"
cd src/engine
export "PATH=${PATH};${CXX_PATH}"
./build.sh ${TOOLSET}
./b2 -v
cd ../..
echo ">>>>>"
echo ">>>>> Test.."
echo ">>>>>"
cd test
python3 test_all.py ${TOOLSET}
cd ..