From 67a8b00510a5eb713ceaeb9c89d6f818ec241ec6 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 24 Sep 2019 08:50:55 +0200 Subject: [PATCH] github actions --- .github/workflows/.main.yml.swp | Bin 0 -> 1024 bytes .github/workflows/main.yml | 75 ++++++++++++++++++++++++++++++++ TODO | 7 +++ 3 files changed, 82 insertions(+) create mode 100644 .github/workflows/.main.yml.swp create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/.main.yml.swp b/.github/workflows/.main.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..06d575d3aaafd36bdb3e7c6fbbcd0a09f61ee5e4 GIT binary patch literal 1024 zcmYc?$V<%2S1{2tWK7E{XQd{W6ziwvm6Yh~rDv98lqTty=NDzC<>Z$a>*pqB=IK@D<{%p}${r1Y(GVa% J1VYiZ0s#CzAVdHF literal 0 HcmV?d00001 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..bd4cfd06a1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,75 @@ +name: EnTT CI + +on: [push] + +jobs: + + linux: + timeout-minutes: 5 + + strategy: + matrix: + os: [ubuntu-18.04] + compiler: [g++, clang++] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Compile tests + working-directory: build + env: + CXX: ${{ matrix.compiler }} + run: | + cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON .. + make -j4 + - name: Run tests + working-directory: build + env: + CTEST_OUTPUT_ON_FAILURE: 1 + run: ctest --timeout 5 -C Debug -j4 + + windows: + timeout-minutes: 5 + + strategy: + matrix: + os: [windows-2019, windows-2016] + include: + - os: windows-2019 + generator: Visual Studio 16 2019 + - os: windows-2016 + generator: Visual Studio 15 2017 + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Compile tests + working-directory: build + run: | + cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON -DCMAKE_CXX_FLAGS=/W1 -G"${{ matrix.generator }}" .. + cmake --build . -j 4 + - name: Run tests + working-directory: build + env: + CTEST_OUTPUT_ON_FAILURE: 1 + run: ctest --timeout 5 -C Debug -j4 + + macos: + timeout-minutes: 5 + + runs-on: macOS-10.14 + + steps: + - uses: actions/checkout@v1 + - name: Compile tests + working-directory: build + run: | + cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON .. + make -j4 + - name: Run tests + working-directory: build + env: + CTEST_OUTPUT_ON_FAILURE: 1 + run: ctest --timeout 5 -C Debug -j4 diff --git a/TODO b/TODO index 0fdf51dde5..fdaf5b198e 100644 --- a/TODO +++ b/TODO @@ -33,3 +33,10 @@ TODO * multi component registry::remove and some others? * range based registry::remove and some others? * nested groups: AB/ABC/ABCD/... (hints: sort, check functions) + +* GH actions: + - deploy doc (github pages) on tags + - rebuild single file somehow, somewhere + - conan on tags + - ninja + - code coverage