-
-
Notifications
You must be signed in to change notification settings - Fork 3
103 lines (101 loc) · 3.34 KB
/
Copy pathci.yml
File metadata and controls
103 lines (101 loc) · 3.34 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push: {}
pull_request: {}
jobs:
setup:
runs-on: macOS-latest
name: select xcode ${{ matrix.xcode }}
strategy:
matrix:
xcode: ["11.4"]
steps:
- uses: actions/checkout@v2
- name: Set Xcode
run: |
echo "Available Xcode versions:"
ls /Applications | grep Xcode
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
swift --version
swift package --version
framework:
name: build bazel framework
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Run Build
run: |
curl -LO https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-darwin-x86_64
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazel-3.0.0-darwin-x86_64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
${GITHUB_WORKSPACE}/bin/bazel --version
export PATH=${GITHUB_WORKSPACE}/bin/:$PATH
which bazel
bazel --version
set -o pipefail
source ./build_frameworks.sh
build:
name: build iOS app
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Homebrew Dependencies
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install clang-format xcodegen
- name: Install Fastlane
run: |
gem install bundler
cd xcode
bundle install
- name: Run Build
run: |
curl -LO https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-darwin-x86_64
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazel-3.0.0-darwin-x86_64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
${GITHUB_WORKSPACE}/bin/bazel --version
export PATH=${GITHUB_WORKSPACE}/bin/:$PATH
which bazel
bazel --version
set -o pipefail
source ./build_frameworks.sh
cd xcode
xcodegen generate
bundle exec fastlane build
test:
name: run iOS tests
runs-on: macOS-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Fetch all branches
run: |
git fetch --prune --unshallow
- name: Install Homebrew Dependencies
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install clang-format xcodegen
- name: Install fastlane
run: |
gem install bundler
cd xcode
bundle install
- name: Run Tests
run: |
curl -LO https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-darwin-x86_64
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazel-3.0.0-darwin-x86_64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
${GITHUB_WORKSPACE}/bin/bazel --version
export PATH=${GITHUB_WORKSPACE}/bin/:$PATH
which bazel
bazel --version
set -o pipefail
source ./build_frameworks.sh
cd xcode
xcodegen generate
bundle exec fastlane tests