Skip to content

Commit

Permalink
copy workflow to master to allow its execution in GH
Browse files Browse the repository at this point in the history
  • Loading branch information
José Redrejo committed Apr 14, 2023
1 parent fdb96a1 commit 8de76db
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build_deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py', 'build_requires.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.10.11
- name: Download the tarfile from URL
if: ${{ github.event.inputs.tar-url }}
run: make get-tar tar=${{ github.event.inputs.tar-url }}
Expand All @@ -51,20 +55,13 @@ jobs:
with:
name: ${{ inputs.tar-file-name }}
path: build_src
- name: Register the kolibri PPA
id: ppa
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD405B4A
sudo add-apt-repository -y -u -s ppa:learningequality/kolibri-proposed
- name: Install Ubuntu dependencies
run: sudo apt install -y devscripts debhelper dh-python python3-all python3-pytest po-debconf
- name: Download the most recent kolibri from the PPA
run: apt-get -y source kolibri
- name: Install Debian build package dependencies
run: sudo apt install -y devscripts debhelper dh-python python3-all python3-pytest po-debconf python3-setuptools
- name: Run the build
run: make kolibri.deb
- name: Get DEB filename
id: get-deb-filename
run: echo "::set-output name=deb-file-name::$(ls dist | grep .deb | cat)"
run: echo "::set-output name=deb-file-name::$(ls dist | grep all.deb | cat)"
- uses: actions/upload-artifact@v2
with:
name: ${{ steps.get-deb-filename.outputs.deb-file-name }}
Expand Down

0 comments on commit 8de76db

Please sign in to comment.