-
-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (45 loc) · 1.22 KB
/
dev.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
name: Dev
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
ubuntu-dev:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Clone
uses: actions/checkout@v3
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
go build Checker/updater.go
mkdir cmake-build-debug && cd cmake-build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -DTEST_COVERAGE=ON -DUSE_HDF5=ON ../
make -j"$(nproc)"
chmod +x ../Script/Coverage.sh
../Script/Coverage.sh .
for SRC in `find . | egrep '\.o'`; do gcov -n $SRC > /dev/null; done
cd ..
- name: Upload
uses: codecov/codecov-action@v3
with:
gcov: true
macos-dev:
runs-on: macos-11
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
export CC=gcc-11 && export CXX=g++-11 && export FC=gfortran-11
go build Checker/updater.go
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_HDF5=ON .
make -j4
export DYLD_LIBRARY_PATH=Libs/mac/
./suanPan -v