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