From bd125fef2c14b776bae2ffe697d20450bd54533f Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Fri, 16 Aug 2024 17:11:39 -0500 Subject: [PATCH] feat: hook up a matrix build for linux --- .github/workflows/lint.yml | 2 +- .github/workflows/main.yml | 27 ++++++++++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 84a214a8..29f69c82 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: SwiftLint uses: norio-nomura/action-swiftlint@3.2.1 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd7dcf6a..a7df2114 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Build and test env: WORKSPACE: "-workspace SWXMLHash.xcworkspace" @@ -25,13 +25,30 @@ jobs: linux-test: name: Linux Test runs-on: ubuntu-latest - + strategy: + fail-fast: false + matrix: + include: + - image: swift:5.8-focal + - image: swift:5.8-jammy + - image: swift:5.8-rhel-ubi9 + - image: swift:5.9-focal + - image: swift:5.9-jammy + - image: swift:5.9-rhel-ubi9 + - image: swift:5.10-focal + - image: swift:5.10-jammy + - image: swift:5.10-rhel-ubi9 + - image: swiftlang/swift:nightly-focal + - image: swiftlang/swift:nightly-jammy + container: + image: ${{ matrix.image }} + timeout-minutes: 10 steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Build and test run: | - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)" + swift build --build-tests swift test windows-test: @@ -45,6 +62,6 @@ jobs: branch: swift-5.8-release tag: 5.8-RELEASE - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Build and test run: swift test