-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (76 loc) · 2.33 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
name: admpfr CI
on:
push:
branches:
- main
- main/**
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
macos:
strategy:
matrix:
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Alire
uses: alire-project/setup-alire@v1
- name: Set up env
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install mpfr
brew install pipx
pipx install e3-testsuite
- name: Build and test admpfr
continue-on-error: true # remove when https://github.com/actions/runner-images/issues/8642 is fixed
run: |
export LIBRARY_PATH=/usr/local/lib
export C_INCLUDE_PATH=/usr/local/include
alr build
alr exec -- ./testsuite/testsuite.py -E --failure-exit-code=1
ubuntu:
strategy:
matrix:
platform: [ubuntu-22.04]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Alire
uses: alire-project/setup-alire@v1
- name: Set up env
run: |
sudo apt install libmpfr-dev
pip3 install e3-testsuite
- name: Build and test admpfr
run: |
alr build
alr exec -- ./testsuite/testsuite.py -E --failure-exit-code=1
windows:
strategy:
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up git
run: |
git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
- name: Set up Alire
uses: alire-project/setup-alire@v1
- name: Set up env
run: |
C:\Users\runneradmin\.cache\alire\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-mpfr
# Install e3-core and e3-testsuite from source to benefit from the rlimit bugfix
pip install git+https://github.com/AdaCore/e3-core.git@master
pip install git+https://github.com/AdaCore/e3-testsuite.git@master
- name: Build and test admpfr
run: |
alr build
alr exec -- python.exe .\testsuite\testsuite.py -E --failure-exit-code=1