Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Update CI workflow for macOS Big Sur and Swift 5.3 #10

Merged
merged 3 commits into from
Nov 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update CI workflow for macOS Big Sur and Swift 5.3
  • Loading branch information
mattt committed Nov 16, 2020
commit 9ab457d3f97615669b41d141bb4b91ec5b068cfa
53 changes: 47 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,61 @@
name: CI

on: [push]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
macos:
runs-on: macOS-latest
macos_big_sur:
runs-on: macos-11.0

strategy:
matrix:
xcode: ["11.3", "11.4"]
xcode:
- "11.7" # Swift 5.2
- "12.2" # Swift 5.3

name: "macOS Big Sur (Xcode ${{ matrix.xcode }})"

steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-
- name: Build and Test
run: |
swift test
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

macos_catalina:
runs-on: macos-10.15

strategy:
matrix:
xcode:
- "11.7" # Swift 5.2
- "12" # Swift 5.3

name: "macOS Catalina (Xcode ${{ matrix.xcode }})"

steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-
- name: Build and Test
run: swift test
run: |
swift test
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

Expand All @@ -23,7 +64,7 @@ jobs:

strategy:
matrix:
swift: ["5.1", "5.2"]
swift: ["5.3", "5.2", "5.1"]

container:
image: swift:${{ matrix.swift }}
Expand Down