Skip to content

Commit

Permalink
Use GitHub Actions (yaml#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk authored May 29, 2020
1 parent 0032321 commit 9deee01
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: linux/mac

on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]

jobs:

build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler:
- gcc
- clang
os:
- ubuntu-latest
- macOS-latest

steps:
- uses: actions/checkout@v2

- run: env | sort
- name: Install software
run: |
if [[ '${{ matrix.os }}' == macOS-latest ]]; then
brew install automake coreutils
fi
- name: Fetch branches
run: |
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch --unshallow
- run: ./bootstrap
- run: ./configure
- run: make
- run: make test-all

- run: |
git clean -d -x -f
rm -fr tests/run-test-suite
git worktree prune
- name: Compiler version
run: ${{ matrix.compiler }} --version
env:
CC: ${{ matrix.compiler }}
- run: cmake .
env:
CC: ${{ matrix.compiler }}
- run: make
env:
CC: ${{ matrix.compiler }}
- run: make test
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ before_install:
# Travis branch-specific clone problem workaround:
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
- env | sort

- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install --user scikit-ci-addons==0.15.0;
Expand Down

0 comments on commit 9deee01

Please sign in to comment.