-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.67 KB
/
Copy pathbuild.yml
File metadata and controls
69 lines (57 loc) · 1.67 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build
on:
push:
branches: [main, master]
tags: ['v*']
pull_request:
branches: [main, master]
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Bootstrap (submodules + dictionaries)
run: make bootstrap
- name: Build
run: make build XCFLAGS="CODE_SIGNING_ALLOWED=NO"
- name: Test
run: make test
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: macos-15
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Bootstrap (submodules + dictionaries)
run: make bootstrap
- name: Build and package
run: make dist XCFLAGS="CODE_SIGNING_ALLOWED=NO"
- name: Extract tag annotation
id: tag_msg
run: |
git fetch origin tag ${GITHUB_REF_NAME} --no-tags --force
echo "body<<ENDOFBODY" >> $GITHUB_OUTPUT
git for-each-ref "refs/tags/${GITHUB_REF_NAME}" --format='%(contents)' >> $GITHUB_OUTPUT
echo "ENDOFBODY" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: Linguist Zixia Input ${{ github.ref_name }}
files: build/LinguistZixiaInput-*.zip
body: ${{ steps.tag_msg.outputs.body }}