-
Notifications
You must be signed in to change notification settings - Fork 42
57 lines (43 loc) · 1.09 KB
/
buildAndTest.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
name: Build & Test
on:
pull_request:
push:
branches:
- master
- devel
jobs:
build-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -qq
sudo apt-get install -y binutils build-essential perl libgmp-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew update
brew install gmp
- name: Build
run: |
cd src && make world
- name: Install
run: |
cd src
sudo make install
- name: Test compiler and runtime system
run: |
cd src/test
make current cleaned
diff cleaned-result cleaned-result.ok
- name: Test mosmllib
run: |
cd src/mosmllib/test
make current cleaned
diff cleaned-result cleaned-result.ok