Skip to content

Commit

Permalink
Migrate from AppVeyor to GitHub actions. (#39)
Browse files Browse the repository at this point in the history
* Fix the Qt build.

* Add a GitHub workflow.

* Update build steps.

* Set up VS paths.

* Get rid of call.

* Don't specify generator.

* Fix source directory.

* Refactor build.

* Update build parallelism.

* Add a build matrix.

* Fix matrix variable name.

* Fix matrix variable prefix.

* Play around with line wrapping.

* Play around with line wrapping.

* Finally understand line wrapping?

* Rename Windows build.

* Rename workflow file.

* Fix VS2015 build.

* Add VS2017 build.

* Delete appveyor.yml.
  • Loading branch information
tmadden committed Oct 8, 2020
1 parent 1f81d33 commit a7e8ee7
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 91 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/vs2017.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: VS2017

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CTEST_OUTPUT_ON_FAILURE: 1

jobs:
build:

runs-on: windows-2016

strategy:
matrix:
config: [Debug, Release]

steps:
- uses: actions/checkout@v2

- name: Configure
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} .
- name: Build tests
run: >
cmake --build build --config ${{matrix.config}}
--target unit_test_runner -j4
cmake --build build --config ${{matrix.config}}
--target single_header_tester
- name: Test
run: |
cmake --build build --config ${{matrix.config}} --target ctest
40 changes: 40 additions & 0 deletions .github/workflows/vs2019.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: VS2019

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CTEST_OUTPUT_ON_FAILURE: 1

jobs:
build:

runs-on: windows-2019

strategy:
matrix:
config: [Debug, Release]

steps:
- uses: actions/checkout@v2

- name: Configure
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} .
- name: Build tests
run: >
cmake --build build --config ${{matrix.config}}
--target unit_test_runner -j4
cmake --build build --config ${{matrix.config}}
--target single_header_tester
- name: Test
run: |
cmake --build build --config ${{matrix.config}} --target ctest
90 changes: 0 additions & 90 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion unit_tests/flow/try_catch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

struct my_exception
{
int x = 0;
int x;
};

TEST_CASE("try_catch", "[flow][try_catch]")
Expand Down

0 comments on commit a7e8ee7

Please sign in to comment.