-
Notifications
You must be signed in to change notification settings - Fork 709
68 lines (66 loc) · 2.12 KB
/
pr_build_kolibri.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
64
65
66
67
68
name: Kolibri Build Assets for Pull Request
on: pull_request
jobs:
prnumber:
# The workflow_run event can't access the pull request
# information unless the pull request comes from a non-fork
# repository. Therefore to get the pull request information,
# we need to store it as a workflow artifact in this workflow.
# Implementation taken from:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
mkdir -p ./pr
echo $PR_NUMBER > ./pr/pr_number
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr/
whl:
name: Build WHL file
uses: ./.github/workflows/build_whl.yml
pex:
name: Build PEX file
needs: whl
uses: ./.github/workflows/build_pex.yml
with:
whl-file-name: ${{ needs.whl.outputs.whl-file-name }}
dmg:
name: Build DMG file
needs: whl
uses: learningequality/kolibri-app/.github/workflows/[email protected]
with:
whl-file-name: ${{ needs.whl.outputs.whl-file-name }}
ref: v0.4.3
deb:
name: Build DEB file
needs: whl
uses: learningequality/kolibri-installer-debian/.github/workflows/[email protected]
with:
tar-file-name: ${{ needs.whl.outputs.tar-file-name }}
ref: v0.16.1
exe:
name: Build EXE file
needs: whl
uses: learningequality/kolibri-installer-windows/.github/workflows/[email protected]
with:
whl-file-name: ${{ needs.whl.outputs.whl-file-name }}
ref: v1.6.4
apk:
name: Build APK file
needs: whl
uses: learningequality/kolibri-installer-android/.github/workflows/[email protected]
with:
tar-file-name: ${{ needs.whl.outputs.tar-file-name }}
ref: v0.1.4
zip:
name: Build Raspberry Pi Image
needs: deb
uses: learningequality/kolibri-image-pi/.github/workflows/[email protected]
with:
deb-file-name: ${{ needs.deb.outputs.deb-file-name }}
ref: v1.0.0