Skip to content

Commit

Permalink
#2728 build: update snapcraft build process and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Mar 16, 2023
1 parent b403367 commit b3993d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
#
build-snap:
needs: create_release
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
env:
QT_VERSION: 5.15.2
name: '🐧 Snap Qt 5.15.2'
Expand All @@ -193,31 +193,29 @@ jobs:
export VERSION=$(cat version.h | sed 's/[^0-9,.]//g')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: '⚙️ Install Snapcraft'
uses: samuelmeuli/action-snapcraft@v2
with:
use_lxd: true
# snapcraft_token: ${{ secrets.SNAP_TOKEN_GH }}
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v3
with:
path: ../Qt
key: ${{runner.os}}-qtcachedir-${{env.QT_VERSION}}

- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
modules: ${{env.QT_MODULES}}
cache: ${{steps.cache-qt.outputs.cache-hit}}

- name: '⚙️ Printenv'
shell: bash
run: |
echo "VERSION=${VERSION}"
printenv
- name: '🚧 Compile application'
run: cd .. && sg lxd -c 'snapcraft --use-lxd' && ls
uses: snapcore/action-build@v1
id: snapcraft

- name: '📤 Release Snap for Linux'
uses: actions/upload-release-asset@v1
Expand All @@ -229,10 +227,6 @@ jobs:
asset_name: QOwnNotes-amd64.snap
asset_content_type: application/octet-stream

- shell: bash
run: |
snapcraft --version
cd .. && pwd
- name: '📤 Deploy Snap'
uses: snapcore/action-publish@v1
continue-on-error: true
Expand All @@ -249,12 +243,6 @@ jobs:
# name: qownnotes_${{ env.VERSION }}_amd64.snap
# path: /home/runner/work/QOwnNotes/QOwnNotes/qownnotes_${{ env.VERSION }}_amd64.snap

- name: '📤 Upload artifact: Snap logs'
uses: actions/upload-artifact@v3
with:
name: snapcraft-logs
path: /home/runner/.cache/snapcraft/log/snapcraft-*.log

#
# Windows build
#
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# QOwnNotes Changelog

## 23.3.4
- the **Snap build process was re-invented** because the necessary
Ubuntu 18.04 build system will vanish from GitHub with the end of March
(for [#2728](https://github.com/pbek/QOwnNotes/issues/2728))

## 23.3.3
- unfortunately since 23.3.1 the **AppImage reports the wrong application path**, because
of that update mechanism fails, this **should (could) be fixed** after this release
Expand Down

0 comments on commit b3993d3

Please sign in to comment.