From 0ba02c5b03cd5ebe3577b565b2253f4001849ca3 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Sun, 7 Jun 2020 15:42:51 +0200 Subject: [PATCH] gh-actions: initial build-and-test.yml runs unit tests and a simple gcc build on Linux and Windows --- .github/workflows/build-and-test.yml | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..7823145 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,48 @@ +name: ci-scripts CI build/test + +on: + push: + branches: [ devel/gh-actions ] + +jobs: + build: + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-16.04, windows-2019] + env: + SETUP_PATH: .:.ci + SET: test01 + VV: 1 + BASE_RECURSIVE: NO + CMP: gcc + + steps: + - uses: actions/checkout@v2 + - name: prepare + run: python cue.py prepare + - name: build + run: python cue.py build + - name: test + run: python cue.py test + - name: test-results + run: python cue.py test-results + + unit-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-16.04, windows-2019] + env: + SETUP_PATH: .:.ci + SET: test00 + VV: 1 + BASE_RECURSIVE: NO + + steps: + - uses: actions/checkout@v2 + - name: show environment + run: python cue-test.py env + - name: unit tests + run: python cue-test.py