File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : 🚀 Build release
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+
11+ build :
12+ runs-on : macos-14 # Apple Silicon Runner
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : n1hility/cancel-previous-runs@v3
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
19+
20+ - name : Select latest Xcode
21+ uses : maxim-lobanov/setup-xcode@v1
22+ with :
23+ xcode-version : ' 15.1'
24+
25+ - name : 🛠️ Build with release configuration
26+ run : |
27+ swift build --configuration release | xcpretty --utf --color && exit ${PIPESTATUS[0]}
28+
29+ - uses : actions/upload-artifact@v4
30+ with :
31+ name : ' public-api-diff'
32+ path : ' .build/release/public-api-diff'
33+ if-no-files-found : ' error'
34+ retention-days : 0
35+
You can’t perform that action at this time.
0 commit comments