From a9bc1fd44ebc90f83d7002f04474b1d947bbaba3 Mon Sep 17 00:00:00 2001 From: Evgeny Posenitskiy <45995097+q-posev@users.noreply.github.com> Date: Mon, 7 Jun 2021 14:05:41 +0200 Subject: [PATCH] create actions.yml for CI on Ubuntu and MacOS (#38) --- .github/workflows/actions.yml | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..a6ddbf2 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,63 @@ +name: TREXIO CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + trexio_ubuntu: + + runs-on: ubuntu-latest + name: x86 Ubuntu latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + sudo add-apt-repository ppa:kelleyk/emacs + sudo apt-get install libhdf5-dev emacs26 + + - name: configure with autotools + run: | + ./autogen.sh + TREXIO_DEVEL=1 ./configure --enable-silent-rules + + - name: compile TREXIO + run: make -j 2 + + - name: check TREXIO + run: make check + + - name: clean + run: make clean + + trexio_macos: + + runs-on: macos-latest + name: x86 MacOS latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + brew install emacs + brew install hdf5 + brew install automake + + - name: configure with autotools + run: | + ./autogen.sh + TREXIO_DEVEL=1 ./configure FC=gfortran-10 --enable-silent-rules + + - name: compile TREXIO + run: make -j 2 + + - name: check TREXIO + run: make check + + - name: clean + run: make clean