-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (33 loc) · 1.23 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and Test
on: [push, pull_request]
jobs:
testing:
name: Build and Test
runs-on: macOS-latest
steps:
- name: Clone Repo
uses: actions/checkout@v1
- name: Set up XCode 13.0
run: sudo xcode-select -switch /Applications/Xcode_13.0.app
- name: Set up Go 1.16.7
uses: actions/setup-go@v1
with:
go-version: 1.16.7
- name: Cache (CocoaPod & Go Mod)
uses: actions/cache@v2
id: cache
with:
path: |
Pods
~/go/pkg/mod
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: CocoaPod Install
run: pod install
- name: Build Dcrlibwallet
run: ./dcrlibwallet-ci-build.sh
- name: Build Dcrios
run: xcodebuild -workspace Decred\ Wallet.xcworkspace -scheme Decred\ Wallet\ Testnet -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' clean
# - name: Test Dcrios
# run: xcodebuild -workspace Decred\ Wallet.xcworkspace -scheme Decred\ Wallet\ Testnet -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' clean test