Skip to content

Commit

Permalink
Create sailfishos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Dec 2, 2023
1 parent 712118e commit ec382b7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/sailfishos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build RPMs

on: [push, pull_request]

env:
OS_VERSION: 4.5.0.16

jobs:
build:
runs-on: ubuntu-latest
name: Build App
strategy:
matrix:
arch: ['armv7hl', 'aarch64', 'i486']

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Prepare
run: docker pull coderus/sailfishos-platform-sdk:$OS_VERSION && mkdir output

- name: Build ${{ matrix.arch }}
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$OS_VERSION /bin/bash -c "
mkdir -p build ;
cd build ;
cp -r /share/* . ;
sb2 -R zypper ar http://repo.merproject.org/obs/home:/piggz:/kf5/sailfishos_3.4.0.24/ piggz ;
sb2 -R zypper refresh ;
sb2 -R zypper in -y kcoreaddons-devel;
sb2 -R zypper in -y kdb-devel;
sb2 -R zypper in -y libKDb3-3;
sb2 -R zypper in -y mkcal-qt5-devel;
mb2 -t SailfishOS-$OS_VERSION-${{ matrix.arch }} build ;
sudo cp -r RPMS/*.rpm /share/output"

- name: Upload RPM (${{ matrix.arch }})
uses: actions/upload-artifact@v2
with:
name: rpm-${{ matrix.arch }}
path: output

0 comments on commit ec382b7

Please sign in to comment.