Skip to content

Commit

Permalink
add github workflow to build for sailfishos
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlpete committed Nov 12, 2024
1 parent 18b0f86 commit 774977a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: build all arch for sailfish

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master

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

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Prepare
run: mkdir output

- name: Build (${{ matrix.arch }})
uses: coderus/github-sfos-build@master
with:
arch: ${{ matrix.arch }}
release: 4.5.0.16

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

- name: Create release
if: contains(github.ref, 'v')
run: |
set -x
assets=()
for asset in RPMS/*.rpm; do
assets+=("-a" "$asset")
done
tag_name="${GITHUB_REF##*/}"
gh release create "$tag_name" "${assets[@]}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 774977a

Please sign in to comment.