Skip to content

Commit 6f6e418

Browse files
committed
Add github action
1 parent e112476 commit 6f6e418

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: warnings
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Check environment
14+
shell: bash -xe {0}
15+
run: |
16+
pwd
17+
gcc --version
18+
git log -n 20 --format="format:%h %ad %s" --date="format:%m/%d %H:%M"
19+
git clone https://github.com/hzhou/mymake_mpich mymake
20+
wget --no-verbose https://github.com/hzhou/mymake_mpich/releases/download/v0.01/modules-yaksa-new.tar.gz
21+
22+
- name: Compile
23+
env:
24+
MYCONFIG: --disable-cxx --disable-fortran --disable-romio --enable-strict --enable-g=dbg
25+
MAKEFLAGS: -j 16
26+
run: |
27+
perl mymake/mymake.pl --with-device=ch4:ofi $MYCONFIG
28+
make install | tee make.log
29+
perl mymake/report_make_log.pl make.log gcc 1
30+
make hydra-install
31+
32+
- name: Test
33+
shell: bash -xe {0}
34+
run: |
35+
export PATH=$PWD/_inst/bin:$PATH
36+
export LD_LIBRARY_PATH=$PWD/_inst/lib
37+
make test
38+
make cpi
39+
mpirun -n 2 ./cpi
40+

0 commit comments

Comments
 (0)