From c92048f13842d7dcdda6a03f6d844d3c2cfcc6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20He=C3=9F?= Date: Wed, 13 Jan 2021 18:20:04 +0100 Subject: [PATCH] Drop Travis, use GH Actions ... better late than never. --- .github/workflows/swift.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..a37ad0c --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,41 @@ +name: Build and Test + +on: + push: + pull_request: + schedule: + - cron: "0 9 * * 1" + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + image: + - swift:5.0.3-xenial + - swift:5.1.5-xenial + - swift:5.2.5-xenial + - swift:5.3.2-xenial + - swift:5.3.2-bionic + container: ${{ matrix.image }} + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Build Swift Debug Package + run: swift build -c debug + - name: Build Swift Release Package + run: swift build -c release + nextstep: + runs-on: macos-latest + steps: + - name: Select latest available Xcode + uses: maxim-lobanov/setup-xcode@v1.2.1 + with: + xcode-version: 12.2 + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Build Swift Debug Package + run: swift build -c debug + - name: Build Swift Release Package + run: swift build -c release