From 29d151604799b58188cd6c8f3fd648e27d683ca7 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 24 Nov 2022 22:57:33 +0100 Subject: [PATCH] Move to GitHub --- .github/FUNDING.yml | 1 + .github/workflows/build.yml | 61 +++++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 63 ------------------------------------- README.md | 2 -- rpm/harbour-papocchio.spec | 12 +++---- rpm/harbour-papocchio.yaml | 12 +++---- 6 files changed, 74 insertions(+), 77 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/build.yml delete mode 100644 .gitlab-ci.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..bab60d6 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +liberapay: ilpianista diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..dc419cb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,61 @@ +name: SailfishOS build + +on: + push: + branches: + - master + tags: + - '*' + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Prepare + run: mkdir output + + - name: Build armv7hl + id: build_armv7hl + uses: coderus/github-sfos-build@master + with: + release: 4.4.0.58 + + - name: Build i486 + id: build_i486 + uses: coderus/github-sfos-build@master + with: + release: 4.4.0.58 + arch: i486 + + - name: Build i486 + id: build_aarch64 + uses: coderus/github-sfos-build@master + with: + release: 4.4.0.58 + arch: aarch64 + + - name: Upload build result + uses: actions/upload-artifact@v2 + with: + name: rpms + path: RPMS + + - name: Create release + if: contains(github.ref, 'release') + run: | + set -x + assets=() + for asset in RPMS/*.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 }} + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 96ad546..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,63 +0,0 @@ -stages: - - build - - test - - publish - -.build: - stage: build - variables: - ARCH: armv7hl - SFOS_VERSION: "3.4.0.24" - image: coderus/sailfishos-platform-sdk:${SFOS_VERSION} - artifacts: - paths: - - "output/*" - script: - - mkdir output - - mkdir ~/build - - cp -r * ~/build - - pushd ~/build - - mb2 -t SailfishOS-$SFOS_VERSION-$ARCH build - - popd - - cp -v ~/build/RPMS/* output - only: - - merge_requests - - tags - -build_armv7hl: - extends: .build - -build_i486: - extends: .build - variables: - ARCH: i486 - -build_aarch64: - extends: .build - variables: - ARCH: aarch64 - -test:validate-rpms: - stage: test - image: registry.gitlab.com/whisperfish/sailo-rs/rpm-validator:latest - needs: - - build_armv7hl - - build_i486 - - build_aarch64 - script: - - rpmvalidation.sh output/*.rpm - only: - - merge_requests - - tags - -publish: - image: inetprocess/gitlab-release - stage: publish - needs: - - build_armv7hl - - build_i486 - - build_aarch64 - only: - - tags - script: - - gitlab-release --message 'Release $CI_COMMIT_TAG' output/* diff --git a/README.md b/README.md index de26cac..dec2753 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ A free-hand draw application for [Sailfish OS](https://sailfishos.org). -[![Build Status](https://gitlab.com/ilpianista/harbour-Papocchio/badges/master/pipeline.svg)](https://gitlab.com/ilpianista/harbour-Papocchio/pipelines) - ## Translations [![Translation status](https://hosted.weblate.org/widgets/harbour-papocchio/-/svg-badge.svg)](https://hosted.weblate.org/engage/harbour-papocchio/?utm_source=widget) diff --git a/rpm/harbour-papocchio.spec b/rpm/harbour-papocchio.spec index a781bf3..fc03708 100644 --- a/rpm/harbour-papocchio.spec +++ b/rpm/harbour-papocchio.spec @@ -37,14 +37,14 @@ DeveloperName: Andrea Scarpino Categories: - Graphics Custom: - Repo: https://gitlab.com/ilpianista/harbour-Papocchio -Icon: https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/icons/harbour-papocchio.svg + Repo: https://github.com/ilpianista/harbour-Papocchio +Icon: https://github.com/ilpianista/harbour-Papocchio/-/raw/master/icons/harbour-papocchio.svg Screenshots: - - https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_1.png - - https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_2.png + - https://github.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_1.png + - https://github.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_2.png Url: - Homepage: https://gitlab.com/ilpianista/harbour-Papocchio - Bugtracker: https://gitlab.com/ilpianista/harbour-Papocchio/-/issues + Homepage: https://github.com/ilpianista/harbour-Papocchio + Bugtracker: https://github.com/ilpianista/harbour-Papocchio/-/issues Donation: https://paypal.me/andreascarpino %endif diff --git a/rpm/harbour-papocchio.yaml b/rpm/harbour-papocchio.yaml index ed78c6e..d4a6983 100644 --- a/rpm/harbour-papocchio.yaml +++ b/rpm/harbour-papocchio.yaml @@ -21,14 +21,14 @@ Description: | Categories: - Graphics Custom: - Repo: https://gitlab.com/ilpianista/harbour-Papocchio - Icon: https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/icons/harbour-papocchio.svg + Repo: https://github.com/ilpianista/harbour-Papocchio + Icon: https://github.com/ilpianista/harbour-Papocchio/-/raw/master/icons/harbour-papocchio.svg Screenshots: - - https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_1.png - - https://gitlab.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_2.png + - https://github.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_1.png + - https://github.com/ilpianista/harbour-Papocchio/-/raw/master/screenshots/screenshot_2.png Url: - Homepage: https://gitlab.com/ilpianista/harbour-Papocchio - Bugtracker: https://gitlab.com/ilpianista/harbour-Papocchio/-/issues + Homepage: https://github.com/ilpianista/harbour-Papocchio + Bugtracker: https://github.com/ilpianista/harbour-Papocchio/-/issues Donation: https://paypal.me/andreascarpino %endif Configure: none