-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·52 lines (38 loc) · 1.17 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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: Tests and coverage
on: [push, pull_request]
env:
cntr: gvegayon/epiworld:latest
jobs:
test-ubuntu:
runs-on: Ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull ${cntr}
- name: Check
run: |
docker run --rm -i -v ${PWD}:/home/tests -w /home/tests ${cntr} \
make all-examples
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check
run: |
brew install llvm@14
echo 'export PATH="/usr/local/opt/llvm@14/bin:$PATH"' >> /Users/runner/.bash_profile
cd tests && make main.a && ./main.a
test-ubuntu2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check
run: |
cd tests && make main.o && ./main.o