From 415fc984ced76ecd85da7633a34a1c247865452f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 25 Nov 2020 23:48:29 +0100 Subject: [PATCH] Add GitHub actions based CI recipe. --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..393d4c4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: Test Suite + +# Only triggers on pushes/PRs to master +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + test: + name: CI + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + dc: [dmd-latest, ldc-latest] + arch: [x86_64] + config: [select, epoll, cfrunloop, winapi] + exclude: + - {os: ubuntu-latest, config: cfrunloop} + - {os: ubuntu-latest, config: winapi} + - {os: macOS-latest, config: epoll} + - {os: macOS-latest, config: winapi} + - {os: windows-latest, config: cfrunloop} + - {os: windows-latest, config: epoll} + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + + - name: Install D compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: ${{ matrix.dc }} + + - name: Run tests + env: + CONFIG: ${{matrix.config}} + shell: bash + run: ./travis-ci.sh