Skip to content

Commit

Permalink
Merge pull request #34 from rem1776/CI-updates
Browse files Browse the repository at this point in the history
CI container update and fix for log files
  • Loading branch information
ngs333 authored Dec 18, 2020
2 parents 7cf1c15 + 59fe943 commit c6784b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
# Github actions CI file
# Ryan Mulhall 2020
# Builds and runs make check in two containers, one with mpi, one without
# CI testing for the FRE-NCtools repo, builds and runs unit tests
# container @ https://hub.docker.com/repository/docker/ryanmulhall/fre-nctools-base
name: FRE-NCtools CI
on: [push, pull_request]
jobs:
build:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
with_mpi: ['','--with-mpi']
enable_quad_precision: ['', '--enable-quad-precision']
env:
container:
image: ryanmulhall/fre-nctools-base
env:
MPI: ${{ matrix.with_mpi }}
QUAD_P: ${{ matrix.enable_quad_precision }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build container
run: docker build . -t fre-nctools
- name: Build and run tests
run: docker run -u root --entrypoint "/bin/sh" --env MPI --env QUAD_P fre-nctools /build.sh
- name: Configure
run: |
autoreconf -i configure.ac
./configure $MPI $QUAD_P
- name: Build tools
run: make
- name: Run tests
run: make -j check LOG_DRIVER_FLAGS=--comments
- name: Save log file on failure
uses: actions/upload-artifact@v2.2.1
if: failure()
with:
name: test-suite.log
path: t/test-suite.log
name: test-suite.log
path: t/test-suite.log
11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions build.sh

This file was deleted.

0 comments on commit c6784b8

Please # to comment.