Add Kolibri 0.16.0b5 #26
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] | |
flatpak: | |
name: Flatpak | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install \ | |
flatpak \ | |
flatpak-builder \ | |
xvfb | |
- name: Cache flatpak user installation | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/flatpak | |
key: flatpak-user-${{ runner.arch }} | |
- name: Cache flatpak-builder state directory | |
uses: actions/cache@v3 | |
with: | |
path: .flatpak-builder | |
key: flatpak-builder-${{ runner.arch }} | |
- name: Add Flathub repository | |
run: | | |
flatpak remote-add --user --if-not-exists flathub \ | |
https://dl.flathub.org/repo/flathub.flatpakrepo | |
- name: Build flatpak | |
# The build needs to be run under Xvfb (or some other virtual | |
# display server) so that Gdk initialization succeeds in the | |
# tests. | |
run: | | |
xvfb-run --auto-servernum -- \ | |
flatpak-builder --user --install-deps-from=flathub --repo _repo _flatpak \ | |
build-aux/flatpak/org.endlessos.Key.Devel.json | |
- name: Create flatpak bundle | |
run: | | |
flatpak build-bundle _repo endless-key-devel.flatpak org.endlessos.Key.Devel | |
- name: Upload flatpak bundle | |
uses: actions/upload-artifact@v3 | |
with: | |
name: flatpak | |
path: endless-key-devel.flatpak |