Repository navigation
89 lines (83 loc) · 2.49 KB
/
Copy pathdev.yml
File metadata and controls
89 lines (83 loc) · 2.49 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Dev Build
on:
push:
branches: ['**']
pull_request:
permissions:
contents: read
concurrency:
group: dev-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref }}
cancel-in-progress: true
jobs:
prepare:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.version.outputs.version }}
native_version: ${{ steps.version.outputs.native_version }}
build_number: ${{ steps.version.outputs.build_number }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- id: version
run: python3 tool/prepare_release.py
build:
needs: prepare
strategy:
fail-fast: false
matrix:
include:
- target: android
runner: ubuntu-24.04
- target: linux
runner: ubuntu-24.04
- target: linux
runner: ubuntu-24.04-arm
- target: windows
runner: windows-2022
- target: macos
runner: macos-15
- target: ios
runner: macos-15
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/build
with:
target: ${{ matrix.target }}
version: ${{ needs.prepare.outputs.version }}
native-version: ${{ needs.prepare.outputs.native_version }}
build-number: ${{ needs.prepare.outputs.build_number }}
signing-password: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
publish:
needs: [prepare, build]
concurrency:
group: release-publish
cancel-in-progress: false
if: >-
${{ !cancelled() &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main' &&
needs.prepare.result == 'success' }}
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/download-artifact@v8
with:
pattern: BITree-*
path: dist
merge-multiple: true
skip-decompress: true
- name: Update Dev Build
env:
GH_TOKEN: ${{ github.token }}
BITREE_VERSION: ${{ needs.prepare.outputs.version }}
run: python3 tool/publish_release.py dev "$BITREE_VERSION"