-
-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (40 loc) · 1.03 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
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
id: checkout
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 }}
- name: Build
id: build
run: swift build --disable-test-discovery
# Call deploycocoadpod.yml
- name: Deploy CocoaPods
uses: ./deploycocoapods.yml
with:
token: ${{ secrets.token }}