forked from sailfishos-patches/patchmanager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ci] Add Github CI * [refactor] Fixes for SFOS4 * [gitignore] Update * [sfos4] Spec fix * [qtc] Icons fix * [systemd] Use _userunitdir
- Loading branch information
Showing
9 changed files
with
133 additions
and
74 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Github CI build | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
- patchmanager3 | ||
|
||
env: | ||
RELEASE: 4.0.1.45 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare | ||
run: mkdir output | ||
|
||
- name: Build armv7hl | ||
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | ||
mkdir -p build ; | ||
cd build ; | ||
cp -r /share/* . ; | ||
mb2 -t SailfishOS-$RELEASE-armv7hl build ; | ||
sudo cp -r RPMS/*.rpm /share/output" | ||
|
||
- name: Build i486 | ||
run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/bash -c " | ||
mkdir -p build ; | ||
cd build ; | ||
cp -r /share/* . ; | ||
mb2 -t SailfishOS-$RELEASE-i486 build ; | ||
sudo cp -r RPMS/*.rpm /share/output" | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: output-rpms | ||
path: output | ||
|
||
- name: Create release | ||
if: contains(github.ref, 'release') | ||
run: | | ||
set -x | ||
assets=() | ||
for asset in output/*.rpm; do | ||
assets+=("-a" "$asset") | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create "${assets[@]}" -m "$tag_name" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
TEMPLATE = aux | ||
# Configures svg to png | ||
THEMENAME=sailfish-default | ||
CONFIG += sailfish-svg2png | ||
|
||
load(sailfish-svg2png-sizes) | ||
|
||
theme.path = /usr/share/themes/$${THEMENAME}/ | ||
themeDirectory.path = /usr/share/themes/$${THEMENAME}/meegotouch | ||
themeDirectory.files += $${OUT_PWD}/icons | ||
|
||
for(profile, SAILFISH_SVG2PNG.profiles) { | ||
# a work-around for installing directories that do not exist yet | ||
system(mkdir -p $${OUT_PWD}/z$${profile}) | ||
|
||
exists( $${OUT_PWD}/symlinks ): svg2png.commands += cp -r symlinks/icons z$${profile} && | ||
|
||
svg2png.commands += /usr/bin/sailfish_svg2png \ | ||
-z $$eval(SAILFISH_SVG2PNG.scales.$${profile}) \ | ||
$$eval(SAILFISH_SVG2PNG.extra.$${profile}) \ | ||
$${_PRO_FILE_PWD_}/svgs \ | ||
z$${profile}/icons && | ||
|
||
svg2png.files += $${OUT_PWD}/z$${profile} | ||
} | ||
|
||
svg2png.commands += true | ||
svg2png.path = $${themeDirectory.path} | ||
|
||
INSTALLS += svg2png theme themeDirectory |
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
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