-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.39 KB
/
ci.yml
File metadata and controls
55 lines (45 loc) · 1.39 KB
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
name: CI
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches: [main]
tags: ['v*']
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Show toolchain versions
run: |
swift --version
xcodebuild -version
- name: Build Swift package
run: swift build
- name: Build app bundle
run: ./build_app.sh
- name: Validate app bundle
run: ./scripts/validate_app_bundle.sh dist/ProcessBarMonitor.app
- name: Archive app bundle
run: |
mkdir -p release
ditto -c -k --sequesterRsrc --keepParent dist/ProcessBarMonitor.app release/ProcessBarMonitor-ci-macOS.zip
shasum -a 256 release/ProcessBarMonitor-ci-macOS.zip > release/ProcessBarMonitor-ci-SHA256SUMS.txt
- name: Upload app artifact
uses: actions/upload-artifact@v7
with:
name: ProcessBarMonitor-macOS
path: |
dist/ProcessBarMonitor.app
release/ProcessBarMonitor-ci-macOS.zip
release/ProcessBarMonitor-ci-SHA256SUMS.txt
release-validation:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: macos-latest
steps:
- name: Release tag detected
run: echo "Release tag ${GITHUB_REF_NAME} validated by CI build job."