Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Use Github Actions for CI (bsamseth#19)
Browse files Browse the repository at this point in the history
The current workflow does less than Travis/Appveyor, but serves as a nice and simple way to do CI with zero setup. Can/should be expanded to do more.
  • Loading branch information
bsamseth authored Jan 24, 2020
1 parent e5b6003 commit 4124bda
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on: [push]

jobs:
build-ubuntu:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=debug ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest


build-windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: configure
run: |
mkdir build
cd build
cmake ..
- name: build
run: cmake --build build
- name: test
run: |
cd build
set CTEST_OUTPUT_ON_FAILURE=1
ctest -C Debug

0 comments on commit 4124bda

Please sign in to comment.