-
-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (64 loc) · 1.67 KB
/
build_master.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
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
name: Build Master Branch
on:
workflow_call:
secrets:
token:
required: true
push:
branches:
- "master"
jobs:
build:
name: Enviroment ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]
swift: ["5.9"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache Swift dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Set Swift Version
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
deploytag:
name: Setup pod
needs: build
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os:
- macos-14
swift:
- "5.9"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# Cache cocoadpod
- name: Cache Cocoapod
uses: actions/cache@v4
with:
path: ~/.cocoapods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-cocoapods-
- name: Install Cocoapod
run: gem install cocoapods
- name: Compress Push To Cocoapods
continue-on-error: true
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
exit 0
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPOD_TOKEN }}