-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (40 loc) · 1.25 KB
/
ci.yaml
File metadata and controls
49 lines (40 loc) · 1.25 KB
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
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update -q -y && sudo apt-get install -q -y python3-dev libgmp-dev libmpfr-dev libgsl0-dev
- name: Build
run: pip3 install .
- name: Test
run: ./conda/run_test.sh
build-aarch64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/smcpp"
install: |
apt-get update -q -y
apt-get install -q -y git python3-pip python3-dev libgmp-dev libmpfr-dev libgsl0-dev libbz2-dev liblzma-dev
run: |
cd /smcpp
echo "Building..."
echo "Preload libgomp to avoid error: cannot allocate memory in static TLS block"
export LD_PRELOAD=/usr/local/lib/python3.8/dist-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0
pip3 install .
echo "Running the tests..."
./conda/run_test.sh