-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (50 loc) · 1.26 KB
/
carthage.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
name: Carthage
on:
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '.github/**' # Ignore all files under '.github'
- '!.github/workflows/carthage.yml' # Except for this workflow
- '.gitignore'
- '.remarkrc'
- 'codecov.yml'
- 'KeyValueObservation.podspec'
- 'LICENSE'
- 'README.md'
- 'Tests/**'
jobs:
build:
name: Build
runs-on: macOS-11
env:
LOGSDIR: /tmp/.keyvalueobservation.carthage/Logs
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Environment
run: |
mkdir -p "$LOGSDIR"
touch "$LOGSDIR/Build.log"
- name: Install Carthage
run: |
brew update
brew install carthage
- name: Create Cartfile
run: |
# Delete all of the old tags (if any) and create a new tag for building
git tag | xargs git tag -d
git tag 1.0
echo "git \"file://$(pwd)\"" > ./Cartfile
- name: Build
run: |
./scripts/carthage.sh update --log-path "$LOGSDIR/Build.log"
- name: Upload Logs
uses: actions/upload-artifact@v2
if: always()
with:
name: BuildLog
path: ${{ env.LOGSDIR }}/*.log