This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 77 branches : [master]
88
99jobs :
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
1241
1342 strategy :
1443 matrix :
1544 xcode :
1645 - " 11.7" # Swift 5.2
1746 - " 12" # Swift 5.3
1847
19- name : " macOS (Xcode ${{ matrix.xcode }})"
48+ name : " macOS Catalina (Xcode ${{ matrix.xcode }})"
2049
2150 steps :
2251 - name : Checkout
Original file line number Diff line number Diff line change 1818 env :
1919 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2020
21- bottle :
21+ bottle_macos_catalina :
2222 name : Build and distribute Homebrew bottle for macOS Catalina
2323 runs-on : macos-10.15
2424 needs : [formula]
4545 formula : Formula/swift-doc.rb
4646 message : |
4747 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+ uses : actions/upload-release-asset@v1.0.1
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)
4980 env :
5081 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5182
You can’t perform that action at this time.
0 commit comments