forked from SciFortran/SciFortran
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (41 loc) · 1.21 KB
/
Ubuntu_Scheduled.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: Scheduled CI SciFortran workflow for Ubuntu
on:
schedule:
# min - hour - day of month - month - day of week
- cron: '0 3 * * *' #Everyday at 3:00 A.M.
defaults:
run:
shell: bash -l {0}
jobs:
test-QcmP:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
#********* SETUP PART **********
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@main
# QcmPlab setup
- uses: QcmPlab/TestSetup@master
with:
pack-type: open
#********* BUILD PART **********
# Build SciFortran
- name: Cloning SciFortran
run: git clone https://github.com/QcmPlab/SciFortran.git scifor
- name: Install SciFortran
run: bin/ci_setup_scifor.sh
#******** TESTING PART ********
# Testing
- name: Building tests
run: |
source ~/.scifor_config_user
export PKG_CONFIG_PATH=~/.pkgconfig.d
export GLOB_INC=$( pkg-config --cflags scifor)
export GLOB_LIB=$( pkg-config --libs scifor | sed "s/;/ /g" | sed 's/\\/ /g' )
cd test
make all
- name: Testing...
run: |
cd test
make test