-
Notifications
You must be signed in to change notification settings - Fork 14
83 lines (79 loc) · 2.38 KB
/
ci.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
#
name: cwerg-tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-22.04]
#python-version: [3.7, 3.8, 3.9]
#os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Deps
run: |
python -m pip install --upgrade pip
# TODO: 2.21 may causes breakage
pip install pycparser==2.20
- name: Install Ubuntu Deps
run: |
sudo apt-get update
echo "delayed packages for these cause a lot of headaches:"
apt-cache policy qemu-user-static
apt-cache madison libc6-dev-i386
apt-cache madison libc6-x32
echo
# NOTE: the qemu-user-static causes a lot of pain because it occasionally is
# unavailable in CI repos
# So we alternate between using the stock version and a pinnen version
# PINNED VERSION
# sudo apt-get install qemu-user-static=1:4.2-3ubuntu6.20
# wget http://launchpadlibrarian.net/548257507/qemu-user-static_4.2-3ubuntu6.17_amd64.deb
# chmod a+r qemu-user-static_4.2-3ubuntu6.17_amd64.deb
#sudo dpkg -i qemu-user-static_4.2-3ubuntu6.17_amd64.deb
# STOCK VERSION
sudo apt-get install qemu-user-static
echo
sudo apt-get install libunwind-dev gcc-multilib
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Show Version Summary
run: |
uname -a
echo
cat /proc/cpuinfo
echo
lsb_release -a
echo
python -V
echo
python3 -V
echo
gcc -v
echo
g++ -v
echo
clang -v
echo
clang++ -v
- name: Run Tests
run: |
PYPY=python3 CC=gcc CXX=g++ MAKESILENT= make tests_github
- name: Benchmark
run: |
PYPY=python3 CC=clang CXX=clang++ MAKESILENT= make benchmark
- name: Integration Tests
run: |
PYPY=python3 CC=gcc CXX=g++ MAKESILENT= make integration_tests