-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (54 loc) · 1.69 KB
/
test.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
59
60
61
62
63
name: Test
on:
push:
branches:
- '*'
- '*/**'
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- 'LICENSE'
- '.github/workflows/publish.yml'
- 'tools/create-release'
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app
jobs:
main:
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Version
shell: bash
run: |
version=`tools/get-version`
echo Version: $version
echo "GH_BUILD_VERSION=$version" >> $GITHUB_ENV
- name: Fetch dependencies
shell: bash
run: ./fetch
- name: Test
shell: bash
run: xcodebuild test -workspace Translit.xcworkspace -scheme Translit -config Release -testPlan Main -derivedDataPath DerivedData
- name: Build
shell: bash
env:
CERTIFICATES_P12: ${{ secrets.CERTIFICATES_P12 }}
CERTIFICATES_PWD: ${{ secrets.CERTIFICATES_PWD }}
KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PWD }}
NOTARIZE_USER: ${{ secrets.NOTARIZE_USER }}
NOTARIZE_PWD: ${{ secrets.NOTARIZE_PWD }}
run: |
tools/set-github-keychain
xcodebuild build \
-workspace Translit.xcworkspace \
-scheme Installer \
-derivedDataPath DerivedData \
TRANSLIT_SIGN_PACKAGE=true CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: Translit-${{ env.GH_BUILD_VERSION }}.pkg
path: DerivedData/Build/Products/Release/Translit-${{ env.GH_BUILD_VERSION }}.pkg
retention-days: 3