-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.09 KB
/
test_build.yaml
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
on:
push:
pull_request:
branches:
- main
name: Test make builds
jobs:
noas-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: '3.6'}
- {os: ubuntu-latest, r: '4.3'}
- {os: ubuntu-20.04, r: '3.6'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
id: install-r
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
- name: Make 3rdparty
run: make 3rdparty
- name: Run & Import DB
run: |
make run_db &
P1=$!
set -e # Enable error handling
make run_dbimport
import_status=$?
wait $P1
if [ $import_status -eq 0 ]; then
echo "Data import succeeded."
else
echo "Data import failed."
exit 1
fi