From 56acd56d118efcfabbf3dc47520476ec122c7137 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Thu, 26 May 2022 15:34:09 +0200 Subject: [PATCH] Add ci.yml --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..3a37326 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Continuous Integration + +on: + workflow_dispatch: + push: + +jobs: + + build-release: + strategy: + matrix: + # https://github.com/actions/virtual-environments + os: [macos-12, ubuntu-20.04] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - run: swift build --disable-automatic-resolution -c release + + run-tests: + strategy: + matrix: + swift-version: [5.3, 5.4, 5.5, 5.6] + runs-on: ubuntu-20.04 + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift-version }} + - uses: actions/checkout@v2 + - run: swift test