Skip to content

Commit 7aa52bf

Browse files
authored
Add GitHub build action (#89)
1 parent 46683e6 commit 7aa52bf

File tree

4 files changed

+33
-31
lines changed

4 files changed

+33
-31
lines changed

opds/.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ReadiumOPDS
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
build:
11+
name: Build and test
12+
runs-on: macos-latest
13+
env:
14+
scheme: ${{ 'r2-opds-swift' }}
15+
platform: ${{ 'iOS Simulator' }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Prepare build
21+
run: |
22+
# readium-opds.xcodeproj is only relevant for Carthage. We remove it otherwise xcodebuild will use it.
23+
rm -rf readium-opds.xcodeproj
24+
- name: Build
25+
run: |
26+
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
27+
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
28+
- name: Test
29+
run: |
30+
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
31+
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device"

opds/.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

opds/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

opds/ReadiumOPDS.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
1616
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
1717

1818
s.dependency 'R2Shared'
19-
s.dependency 'Fuzi'
19+
s.dependency 'Fuzi', '~> 3.1.3'
2020

2121
end

0 commit comments

Comments
 (0)