-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (45 loc) · 1019 Bytes
/
c-cpp.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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
included:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: update
run: |
sudo apt update
sudo apt install gfortran-11 gcc-11 python3
- name: configure
run: cmake .
env:
FC: gfortran-11
CXX: g++-11
CC: gcc-11
- name: build
run: make
- name: test
run: ctest --output-on-failure
# rebuild:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: update
# run: |
# sudo apt update
# sudo apt install gcc-11 gfortran-11 python3 guile-3.0
# - name: configure
# run: cmake .
# env:
# FC: gfortran-11
# CXX: g++-11
# CC: gcc-11
# LD_LIBRARY_PATH: $LD_LIBRARY_PATH:. # for test/test-3
# - name: build
# run: make
# - name: test
# run: ctest --output-on-failure