This repository was archived by the owner on Jul 16, 2026. It is now read-only.
fix: copy .deb into workspace before upload-artifact #45
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: Test installation of kolibri-server | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build kolibri-server .deb package | |
| runs-on: ubuntu-latest | |
| outputs: | |
| ppa_series: ${{ steps.detect_series.outputs.PPA_SERIES }} | |
| steps: | |
| - name: Checkout codebase | |
| uses: actions/checkout@v6 | |
| - name: Detect runner series | |
| id: detect_series | |
| run: | | |
| SERIES=$(. /etc/os-release && echo "$VERSION_CODENAME") | |
| echo "PPA_SERIES=${SERIES}" >> "$GITHUB_OUTPUT" | |
| echo "Detected series: ${SERIES}" | |
| - name: Install build dependencies | |
| run: make install-build-deps | |
| - name: Install Kolibri | |
| run: make install-kolibri | |
| - name: Build .deb package | |
| run: | | |
| make deb | |
| cp ../kolibri-server_*.deb ./kolibri-server.deb | |
| - name: Upload .deb artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: kolibri-server-deb | |
| path: kolibri-server.deb | |
| install_test: | |
| name: Install on ${{ matrix.target-image }} (${{ matrix.runner }}) | |
| needs: build | |
| runs-on: ${{ matrix.runner }} | |
| container: ${{ matrix.target-image }} | |
| strategy: | |
| max-parallel: 10 | |
| matrix: | |
| target-image: ['ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04', 'debian:bullseye', 'debian:bookworm'] | |
| runner: ['ubuntu-latest', 'ubuntu-24.04-arm'] | |
| steps: | |
| - name: Checkout codebase | |
| uses: actions/checkout@v6 | |
| - name: Setup environment | |
| run: | | |
| apt-get update | |
| apt-get install -y gpg tzdata | |
| rm -f /etc/localtime | |
| ln -s /usr/share/zoneinfo/America/New_York /etc/localtime | |
| dpkg-reconfigure -f noninteractive tzdata | |
| - name: Setup Kolibri PPA | |
| env: | |
| PPA_SERIES: ${{ needs.build.outputs.ppa_series }} | |
| run: ./test/setup_ppa.sh | |
| - name: Configure debconf selections | |
| run: | | |
| echo "kolibri kolibri/init boolean false" | debconf-set-selections | |
| echo "kolibri kolibri/user string kolibri" | debconf-set-selections | |
| echo "kolibri-server kolibri-server/port select 8080" | debconf-set-selections | |
| echo "kolibri-server kolibri-server/zip_content_port select 8081" | debconf-set-selections | |
| - name: Download .deb artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: kolibri-server-deb | |
| - name: Install kolibri-server | |
| run: apt-get update && apt-get install -y ./kolibri-server.deb |