Skip to content

Commit

Permalink
Fix #4 (#5)
Browse files Browse the repository at this point in the history
- Bump to Swift 5.3
- Add iOS and AWS linux to CI
  • Loading branch information
ualch9 authored Sep 20, 2020
1 parent 5a7578c commit 4b5b2d4
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 14 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Apple

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
macos:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: 12
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

ios:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: 12
- uses: actions/checkout@v2
- name: Build
run: xcodebuild clean build-for-testing
-scheme 'MeteorologicalServiceOfCanada'
-destination 'name=iPhone 11 Pro'
-quiet
- name: Unit Test
run: xcodebuild test-without-building
-scheme 'MeteorologicalServiceOfCanada'
-destination 'name=iPhone 11 Pro'
-quiet
23 changes: 13 additions & 10 deletions .github/workflows/swift.yml → .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Swift
name: Linux

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
macos:
runs-on: macos-latest
ubuntu:
runs-on: ubuntu-latest
container:
image: swift:5.3
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- name: Checkout
uses: actions/checkout@v1
- name: Build and Test
run: swift test --enable-test-discovery

linux:
amazonlinux:
runs-on: ubuntu-latest
container:
image: swift:5.2.5
image: swift:5.3-amazonlinux2
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined
steps:
- name: Checkout
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Meteorological Service Of Canada
![Swift](https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift/workflows/Swift/badge.svg)
![Swift 5.3](https://img.shields.io/badge/swift-5.3-orange)
![MIT License](https://img.shields.io/badge/license-MIT-lightgrey)

A Swift wrapper for Meteorological Service Of Canada Open Data.

## Platforms
- Apple platforms
- Ubuntu
| Platform | CI |
| :------- | :- |
| Apple | [![Apple](https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift/workflows/Apple/badge.svg)](https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift/actions?query=workflow%3AApple) |
| Linux (Ubuntu & Amazon) | [![Linux](https://github.com/ualch9/MeteorologicalServiceOfCanada-Swift/workflows/Linux/badge.svg)](https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift/actions?query=workflow%3ALinux) |

## Installation
Swift Package Manager:
Expand All @@ -12,7 +17,7 @@ https://github.com/WeatherProvider/MeteorologicalServiceOfCanada-Swift.git
```

### Important
This library is still undergoing major changes. It is recommended you use exact version when installing to minimize impacts.
This library is still undergoing major changes. It is recommended you use exact version when installing to minimize future impacts.

## Usage
```swift
Expand Down

0 comments on commit 4b5b2d4

Please sign in to comment.