Skip to content

Commit

Permalink
feat: hook up a matrix build for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
drmohundro committed Aug 16, 2024
1 parent 64e8b8b commit bd125fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: SwiftLint
uses: norio-nomura/[email protected]
with:
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand All @@ -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

0 comments on commit bd125fe

Please sign in to comment.