Add funding.json manifest to Kolibri for submission to FLOSS fund #7374
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.4 | |
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.9 | |
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.6 | |
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 | |
test_whl_file: | |
name: Test WHL file | |
needs: whl | |
strategy: | |
matrix: | |
python-version: [3.9, '3.10', '3.11', '3.12', '3.13'] | |
cext: [true, false] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v6 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/download-artifact@v5 | |
with: | |
name: ${{ needs.whl.outputs.whl-file-name }} | |
path: dist | |
- name: Install WHL file | |
run: pip install dist/${{ needs.whl.outputs.whl-file-name }} | |
- name: Smoke test WHL file | |
env: | |
KOLIBRI_NO_C_EXTENSIONS: ${{ matrix.cext == false && '1' || '' }} | |
run: kolibri configure setup | |
test_whl_file_eol_python: | |
name: Test WHL file with EOL Python versions | |
needs: whl | |
strategy: | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
cext: [true, false] | |
runs-on: ubuntu-latest | |
container: | |
image: python:${{ matrix.python-version }}-buster | |
steps: | |
- uses: actions/download-artifact@v5 | |
with: | |
name: ${{ needs.whl.outputs.whl-file-name }} | |
path: dist | |
- name: Install WHL file | |
run: pip install dist/${{ needs.whl.outputs.whl-file-name }} | |
- name: Smoke test WHL file | |
env: | |
KOLIBRI_NO_C_EXTENSIONS: ${{ matrix.cext == false && '1' || '' }} | |
run: kolibri configure setup |