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

Commit

Permalink
Update CI workflow for macOS Big Sur and Swift 5.3 (#10)
Browse files Browse the repository at this point in the history
* Update CI workflow for macOS Big Sur and Swift 5.3

* Drop support for Swift 5.1

* Add name to linux job
  • Loading branch information
mattt authored Nov 16, 2020
1 parent 9899f2c commit 327f371
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 8 deletions.
55 changes: 49 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,9 @@ jobs:

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

name: "Ubuntu Linux (Swift ${{ matrix.swift }})"

container:
image: swift:${{ matrix.swift }}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A Swift package for working with [GraphViz][graphviz].

## Requirements

- Swift 5.1+
- Swift 5.2+
- GraphViz _(only for rendering)_

## Usage
Expand Down

0 comments on commit 327f371

Please sign in to comment.