Skip to content

Commit bfc33c9

Browse files
committed
Switch to GitHub Actions for CI
This also bumps our testing target platform to iPhone 8 (from iPhone 7) because that's the minimum version available in GitHub's environment.
1 parent 6ca6131 commit bfc33c9

File tree

5 files changed

+51
-21
lines changed

5 files changed

+51
-21
lines changed

.github/workflows/ci.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- 'releases/*'
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: macOS-latest
17+
strategy:
18+
matrix:
19+
platform: ['iOS Simulator,name=iPhone 8']
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Analyze and Test
23+
run: |
24+
xcodebuild clean analyze test \
25+
-destination "platform=${{ matrix.platform }}" \
26+
-sdk "iphonesimulator" \
27+
-project PINCache.xcodeproj \
28+
-scheme PINCache \
29+
ONLY_ACTIVE_ARCH=NO \
30+
CODE_SIGNING_REQUIRED=NO \
31+
| xcpretty
32+
cocoapods:
33+
name: CocoaPods
34+
runs-on: macOS-latest
35+
steps:
36+
- uses: actions/checkout@v1
37+
- name: Lint
38+
run: pod lib lint
39+
carthage:
40+
name: Carthage
41+
runs-on: macOS-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
- name: Update
45+
run: carthage update --no-use-binaries --no-build
46+
- name: Build
47+
run: carthage build --no-skip-current

.travis.yml

-18
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Add your own contributions to the next release on the line below this with your name.
44

55
- [performance] Optimize `PINMemoryCache` remove objects when receive memory warning notification. [#251](https://github.com/pinterest/PINCache/pull/251)
6+
- [new] Migrated to GitHub Actions for continuous integration. [#259](https://github.com/pinterest/PINCache/pull/259)
67

78
## 3.0.1 -- Beta 8
89
- [fix] Initing PINCache with TTL enabled should enable TTL on PINMemoryCache. [#246](https://github.com/pinterest/PINCache/pull/246)

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PLATFORM="platform=iOS Simulator,name=iPhone 7"
1+
PLATFORM="platform=iOS Simulator,name=iPhone 8"
22
SDK="iphonesimulator"
33
SHELL=/bin/bash -o pipefail
44

@@ -25,4 +25,4 @@ carthage:
2525
carthage update --no-use-binaries --no-build
2626
carthage build --no-skip-current
2727

28-
all: carthage lint test analyze
28+
all: carthage lint test analyze

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CocoaPods](https://img.shields.io/cocoapods/v/PINCache.svg)](http://cocoadocs.org/docsets/PINCache/)
44
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
5-
[![Build status](https://badge.buildkite.com/03e247305c96c3371f2ff2766e9c8c1efdd5fdb3a7eceaff43.svg?branch=master&style=flat)](https://buildkite.com/pinterest/pincache)
5+
[![Build status](https://github.com/pinterest/PINCache/workflows/ci/badge.svg)](https://github.com/pinterest/PINCache)
66

77
## Fast, non-deadlocking parallel object cache for iOS and OS X.
88

0 commit comments

Comments
 (0)