File tree 2 files changed +65
-5
lines changed
2 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 7
7
branches : [master]
8
8
9
9
jobs :
10
- macos :
11
- runs-on : macos-latest
10
+ macos_big_sur :
11
+ runs-on : macos-11.0
12
+
13
+ strategy :
14
+ matrix :
15
+ xcode :
16
+ - " 11.7" # Swift 5.2
17
+ - " 12.2" # Swift 5.3
18
+
19
+ name : " macOS Big Sur (Xcode ${{ matrix.xcode }})"
20
+
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v1
24
+ - uses : actions/cache@v2
25
+ with :
26
+ path : .build
27
+ key : ${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-
30
+ - name : Install System Dependencies
31
+ run : |
32
+ brew install graphviz
33
+ - name : Build and Test
34
+ run : |
35
+ swift test -c release
36
+ env :
37
+ DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
38
+
39
+ macos_catalina :
40
+ runs-on : macos-10.15
12
41
13
42
strategy :
14
43
matrix :
15
44
xcode :
16
45
- " 11.7" # Swift 5.2
17
46
- " 12" # Swift 5.3
18
47
19
- name : " macOS (Xcode ${{ matrix.xcode }})"
48
+ name : " macOS Catalina (Xcode ${{ matrix.xcode }})"
20
49
21
50
steps :
22
51
- name : Checkout
Original file line number Diff line number Diff line change 18
18
env :
19
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
20
21
- bottle :
21
+ bottle_macos_catalina :
22
22
name : Build and distribute Homebrew bottle for macOS Catalina
23
23
runs-on : macos-10.15
24
24
needs : [formula]
45
45
formula : Formula/swift-doc.rb
46
46
message : |
47
47
Add bottle for swift-doc ${{ github.event.release.tag_name }}
48
- on macOS Catalina
48
+ on macOS 10.15 (Catalina)
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+
52
+ bottle_macos_big_sur :
53
+ name : Build and distribute Homebrew bottle for macOS Big Sur
54
+ runs-on : macos-11.0
55
+ needs : [formula]
56
+ steps :
57
+ - name : Build a bottle using Homebrew
58
+ run : |
59
+ brew tap swiftdocorg/formulae
60
+ brew install --build-bottle --verbose swift-doc
61
+ brew bottle swift-doc
62
+ - name : Upload the bottle to the GitHub release
63
+
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ with :
67
+ upload_url : ${{ github.event.release.upload_url }}
68
+ asset_path : ./swift-doc--${{ github.event.release.tag_name }}.big_sur.bottle.tar.gz
69
+ asset_name : swift-doc-${{ github.event.release.tag_name }}.big_sur.bottle.tar.gz
70
+ asset_content_type : application/gzip
71
+ - name : Update the Homebrew formula again with bottle
72
+ uses : NSHipster/update-homebrew-formula-action@main
73
+ with :
74
+ repository : SwiftDocOrg/swift-doc
75
+ tap : SwiftDocOrg/homebrew-formulae
76
+ formula : Formula/swift-doc.rb
77
+ message : |
78
+ Add bottle for swift-doc ${{ github.event.release.tag_name }}
79
+ on macOS 11.0 (Big Sur)
49
80
env :
50
81
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
82
You can’t perform that action at this time.
0 commit comments