From c0ff16b23bcb1f51fe08447106787cc1f4307401 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:23:51 -0500 Subject: [PATCH 01/26] CI Integration First attempt to use GitHub Actions --- .github/workflows/main.yml | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..b0151779 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,68 @@ +# This is a basic workflow to help you get started with Actions + +name: AppImage CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + name: Build AppImage + #Ubuntu 16.04 use glibc 2.23 + runs-on: ubuntu-16.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Setup QT environment + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-xenial -y + sudo apt-get update -qq + sudo apt install --assume-yes install \ + build-essential \ + wget \ + qt512base \ + fff + source /opt/qt*/bin/qt*-env.sh + + + # Runs a set of commands using the runners shell + - name: Build AppImage + run: | + wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage + chmod +x linuxdeployqt-continuous-x86_64.AppImage + ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: continuous + release_name: Continuous build + body: | + Release ${{ github.ref }} + draft: false + prerelease: true + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./ngPost.AppImage + asset_name: ngPost_latest-x86_64.AppImage + asset_content_type: application/octet-stream From 9e09b8375d01ee7ecb6d185f8a8e771cabb8aed9 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:25:35 -0500 Subject: [PATCH 02/26] Clean the trash --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b0151779..1ffd292b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,11 +30,10 @@ jobs: run: | sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-xenial -y sudo apt-get update -qq - sudo apt install --assume-yes install \ + sudo apt --assume-yes install \ build-essential \ wget \ - qt512base \ - fff + qt512base source /opt/qt*/bin/qt*-env.sh From 268ac5a98ffee8dabc200c668ea76bf2c2336531 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:27:39 -0500 Subject: [PATCH 03/26] Fix step error --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ffd292b..855da0ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,12 +34,10 @@ jobs: build-essential \ wget \ qt512base - source /opt/qt*/bin/qt*-env.sh - - # Runs a set of commands using the runners shell - name: Build AppImage run: | + source /opt/qt*/bin/qt*-env.sh wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake From 1dbb8b85ca04a8e8fe2b2f463007ba642ca2321a Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:29:35 -0500 Subject: [PATCH 04/26] Not use source command --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 855da0ae..f0f24229 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,6 @@ jobs: # Runs a set of commands using the runners shell - name: Build AppImage run: | - source /opt/qt*/bin/qt*-env.sh wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake From 837157fb4fa1e957957074b8a49e337cc4d68604 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:35:49 -0500 Subject: [PATCH 05/26] Fix workspace --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0f24229..764f8065 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,8 @@ jobs: run: | wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + ls -ltrah ${{ GITHUB_WORKSPACE }} + ./linuxdeployqt-continuous-x86_64.AppImage ${{ GITHUB_WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake - name: Create Release id: create_release uses: actions/create-release@v1 From 33ebe1b472512477c2a2e4b834eabbc8ef215798 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:38:22 -0500 Subject: [PATCH 06/26] Fix GITHUB_WORKSPACE --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 764f8065..1745df06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,7 @@ jobs: - name: Setup QT environment env: DEBIAN_FRONTEND: noninteractive + GITHUB_WORKSPACE: ${{ GITHUB_WORKSPACE }} run: | sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-xenial -y sudo apt-get update -qq From 3f9df05226cba8e50943f4e0be9a4ffd6631fc47 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:40:53 -0500 Subject: [PATCH 07/26] Fix WORKSPACE --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1745df06..ccb27fb3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: - name: Setup QT environment env: DEBIAN_FRONTEND: noninteractive - GITHUB_WORKSPACE: ${{ GITHUB_WORKSPACE }} + _WORKSPACE: ${{ GITHUB_WORKSPACE }} run: | sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-xenial -y sudo apt-get update -qq @@ -40,8 +40,8 @@ jobs: run: | wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ls -ltrah ${{ GITHUB_WORKSPACE }} - ./linuxdeployqt-continuous-x86_64.AppImage ${{ GITHUB_WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + ls -ltrah ${{ _WORKSPACE }} + ./linuxdeployqt-continuous-x86_64.AppImage ${{ _WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake - name: Create Release id: create_release uses: actions/create-release@v1 From 2f5a76d8dd453831e9ac11eade27b6646640b3d0 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:43:37 -0500 Subject: [PATCH 08/26] Fix GITHUB_WORKSPACE --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccb27fb3..2310ca9f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,6 @@ jobs: - name: Setup QT environment env: DEBIAN_FRONTEND: noninteractive - _WORKSPACE: ${{ GITHUB_WORKSPACE }} run: | sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-xenial -y sudo apt-get update -qq @@ -40,8 +39,8 @@ jobs: run: | wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ls -ltrah ${{ _WORKSPACE }} - ./linuxdeployqt-continuous-x86_64.AppImage ${{ _WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + ls -ltrah ${{ env.GITHUB_WORKSPACE }} + ./linuxdeployqt-continuous-x86_64.AppImage ${{ env.GITHUB_WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake - name: Create Release id: create_release uses: actions/create-release@v1 From 6324e43914844ffd3f1d7c5fd9f45af8e12dc41b Mon Sep 17 00:00:00 2001 From: Bakasura Date: Mon, 29 Jun 2020 22:53:37 -0500 Subject: [PATCH 09/26] Fix Workspace --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2310ca9f..f0f24229 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,8 +39,7 @@ jobs: run: | wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ls -ltrah ${{ env.GITHUB_WORKSPACE }} - ./linuxdeployqt-continuous-x86_64.AppImage ${{ env.GITHUB_WORKSPACE }}/ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake - name: Create Release id: create_release uses: actions/create-release@v1 From c1dc6bb2a243a8589a32639fcb1ea5a32a0533d0 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 12:42:05 +0000 Subject: [PATCH 10/26] Compile first --- .github/workflows/main.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0f24229..bc85864b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,29 +1,16 @@ -# This is a basic workflow to help you get started with Actions - name: AppImage CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: push: branches: [ master ] pull_request: branches: [ master ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: name: Build AppImage #Ubuntu 16.04 use glibc 2.23 runs-on: ubuntu-16.04 - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - name: Setup QT environment env: DEBIAN_FRONTEND: noninteractive @@ -34,9 +21,10 @@ jobs: build-essential \ wget \ qt512base - # Runs a set of commands using the runners shell - name: Build AppImage run: | + qmake + make wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake @@ -58,7 +46,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./ngPost.AppImage asset_name: ngPost_latest-x86_64.AppImage asset_content_type: application/octet-stream From ea94772a3551a93ad95a7c5707e351faddb6f49b Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 12:43:52 +0000 Subject: [PATCH 11/26] Fix qmake path --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc85864b..f2a433a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: qt512base - name: Build AppImage run: | - qmake + /opt/qt512/bin/bin/qmake make wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage From 034842fc200c826ad400dc8e53e5a04eafb5190e Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 12:47:28 +0000 Subject: [PATCH 12/26] Fix qmake path --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2a433a3..5ca26656 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,11 +23,11 @@ jobs: qt512base - name: Build AppImage run: | - /opt/qt512/bin/bin/qmake + /opt/qt512/bin/qmake make wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/bin/qmake + ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake - name: Create Release id: create_release uses: actions/create-release@v1 From bc4b057545520d4c65c54dd1798d6fc3920da8d5 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 12:51:19 +0000 Subject: [PATCH 13/26] Go to src folder --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ca26656..54da487d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,7 @@ jobs: qt512base - name: Build AppImage run: | + cd src /opt/qt512/bin/qmake make wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage From abc3a6c22982790955114b41d9ede6031a1e541b Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:19:00 +0000 Subject: [PATCH 14/26] Install LibGL --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54da487d..a3e3d38f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,8 +19,9 @@ jobs: sudo apt-get update -qq sudo apt --assume-yes install \ build-essential \ - wget \ - qt512base + libgl1-mesa-dev \ + qt512base \ + wget - name: Build AppImage run: | cd src From d9c9dfb34f0c58467ddbad26e1cc935f651de46d Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:26:50 +0000 Subject: [PATCH 15/26] Move desktop file to src folder --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3e3d38f..5e42ee2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,7 @@ jobs: wget - name: Build AppImage run: | + mv ./ngPost.desktop ./src cd src /opt/qt512/bin/qmake make @@ -49,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./ngPost.AppImage + asset_path: ./src/ngPost.AppImage asset_name: ngPost_latest-x86_64.AppImage asset_content_type: application/octet-stream From dc8340773dc1dc360afa9865c546df17362dad87 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:36:43 +0000 Subject: [PATCH 16/26] Change path of AppImage --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5e42ee2f..3d3ecc5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src/ngPost.AppImage + asset_path: ./src/ngPost*.AppImage asset_name: ngPost_latest-x86_64.AppImage asset_content_type: application/octet-stream From e6db1e0843fd580fb346ded844d41dc38851d4e7 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:44:45 +0000 Subject: [PATCH 17/26] Fix AppImage name --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d3ecc5f..f08f1b1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: tag_name: continuous release_name: Continuous build body: | - Release ${{ github.ref }} + Release ${{ github.sha }} draft: false prerelease: true - name: Upload Release Asset @@ -50,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src/ngPost*.AppImage + asset_path: ./src/ngPost-${{ github.sha:0:7 }}-x86_64.AppImage asset_name: ngPost_latest-x86_64.AppImage asset_content_type: application/octet-stream From 803a477b8dec5eb9c9c97e76314ba5e983029a88 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:46:24 +0000 Subject: [PATCH 18/26] Fix AppImage name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f08f1b1d..e9f67d62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src/ngPost-${{ github.sha:0:7 }}-x86_64.AppImage + asset_path: ./src/ngPost-*-x86_64.AppImage asset_name: ngPost_latest-x86_64.AppImage asset_content_type: application/octet-stream From 7a58253bdab840ccb754b21645c1c12d56fd9e4e Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 13:59:14 +0000 Subject: [PATCH 19/26] Change release action --- .github/workflows/main.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9f67d62..71aeae69 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,23 +33,16 @@ jobs: ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: meeDamian/github-release@2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + token: ${{ secrets.GITHUB_TOKEN }} tag_name: continuous release_name: Continuous build body: | Release ${{ github.sha }} + files: ./src/ngPost-*-x86_64.AppImage draft: false prerelease: true - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src/ngPost-*-x86_64.AppImage - asset_name: ngPost_latest-x86_64.AppImage - asset_content_type: application/octet-stream + allow_override: true From 0fa26280af0a0e6ed7790e56afa50619f50c72ac Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 14:03:41 +0000 Subject: [PATCH 20/26] Fix action parameters --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71aeae69..9b91d15a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,8 +38,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: token: ${{ secrets.GITHUB_TOKEN }} - tag_name: continuous - release_name: Continuous build + tag: continuous + name: Continuous build body: | Release ${{ github.sha }} files: ./src/ngPost-*-x86_64.AppImage From 755e31d379613aaee38f9ec506f418d5bd63203c Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 14:27:42 +0000 Subject: [PATCH 21/26] Remove trash files --- .github/workflows/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b91d15a..72dfebdd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,11 +26,22 @@ jobs: run: | mv ./ngPost.desktop ./src cd src + ls -ltrah /opt/qt512/bin/qmake make wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage + ls -ltrah ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake + ls -ltrah + # Remove trash + rm -rf ./hmi + rm -rf ./lang + rm -rf ./nntp + rm -rf ./resources + rm -rf ./utils + rm -rf ./linuxdeployqt-continuous-x86_64.AppImage + find ./ \( -name "moc_*" -or -name "*.o" -or -name "*.h" -or -name "*.cpp" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" \) -exec rm -rf {} \; - name: Create Release id: create_release uses: meeDamian/github-release@2.0 @@ -42,7 +53,7 @@ jobs: name: Continuous build body: | Release ${{ github.sha }} - files: ./src/ngPost-*-x86_64.AppImage + files: ./src/ngPost-*-x86_64.AppImage/ngPost-*-x86_64.AppImage draft: false prerelease: true allow_override: true From e8e5c9a285aabab4c9be1eb50bcdebd65c15ad10 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 14:34:06 +0000 Subject: [PATCH 22/26] Remove trash files --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72dfebdd..a391585e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,10 +29,6 @@ jobs: ls -ltrah /opt/qt512/bin/qmake make - wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage - chmod +x linuxdeployqt-continuous-x86_64.AppImage - ls -ltrah - ./linuxdeployqt-continuous-x86_64.AppImage ./ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake ls -ltrah # Remove trash rm -rf ./hmi @@ -40,8 +36,12 @@ jobs: rm -rf ./nntp rm -rf ./resources rm -rf ./utils - rm -rf ./linuxdeployqt-continuous-x86_64.AppImage find ./ \( -name "moc_*" -or -name "*.o" -or -name "*.h" -or -name "*.cpp" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" \) -exec rm -rf {} \; + cd .. + wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage + chmod +x linuxdeployqt-continuous-x86_64.AppImage + ls -ltrah ./src + ./linuxdeployqt-continuous-x86_64.AppImage ./src/ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake - name: Create Release id: create_release uses: meeDamian/github-release@2.0 @@ -53,7 +53,7 @@ jobs: name: Continuous build body: | Release ${{ github.sha }} - files: ./src/ngPost-*-x86_64.AppImage/ngPost-*-x86_64.AppImage + files: ./src/ngPost-*-x86_64.AppImage draft: false prerelease: true allow_override: true From eb3ed7fe3bb0ded75382c203c00d6775259857d6 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 14:39:35 +0000 Subject: [PATCH 23/26] Not remove resources folder --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a391585e..538b7fa9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,6 @@ jobs: rm -rf ./hmi rm -rf ./lang rm -rf ./nntp - rm -rf ./resources rm -rf ./utils find ./ \( -name "moc_*" -or -name "*.o" -or -name "*.h" -or -name "*.cpp" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" \) -exec rm -rf {} \; cd .. From da59d7f1b699396be98a648d7a26f0d726a5a637 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 14:43:38 +0000 Subject: [PATCH 24/26] Fix AippImage path --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 538b7fa9..c0deef3b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,8 @@ jobs: chmod +x linuxdeployqt-continuous-x86_64.AppImage ls -ltrah ./src ./linuxdeployqt-continuous-x86_64.AppImage ./src/ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake + ls -ltrah ./src + ls -ltrah - name: Create Release id: create_release uses: meeDamian/github-release@2.0 @@ -52,7 +54,7 @@ jobs: name: Continuous build body: | Release ${{ github.sha }} - files: ./src/ngPost-*-x86_64.AppImage + files: ./ngPost-*-x86_64.AppImage draft: false prerelease: true allow_override: true From 14db8d14a16e69178dae9fa5522e2167bf744498 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 15:02:10 +0000 Subject: [PATCH 25/26] Use unique AppImage name --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0deef3b..cdd4b8a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,7 @@ jobs: ls -ltrah ./src ./linuxdeployqt-continuous-x86_64.AppImage ./src/ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake ls -ltrah ./src + mv ./ngPost-*-x86_64.AppImage ./ngPost-latest-x86_64.AppImage ls -ltrah - name: Create Release id: create_release @@ -54,7 +55,7 @@ jobs: name: Continuous build body: | Release ${{ github.sha }} - files: ./ngPost-*-x86_64.AppImage + files: ./ngPost-latest-x86_64.AppImage draft: false prerelease: true allow_override: true From 88e6b67a9c4fbeb494761ba0dea4d6d8de0e04c5 Mon Sep 17 00:00:00 2001 From: Bakasura Date: Tue, 30 Jun 2020 15:32:53 +0000 Subject: [PATCH 26/26] Remove debug commands --- .github/workflows/main.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cdd4b8a9..3ccea4ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,10 +26,8 @@ jobs: run: | mv ./ngPost.desktop ./src cd src - ls -ltrah /opt/qt512/bin/qmake make - ls -ltrah # Remove trash rm -rf ./hmi rm -rf ./lang @@ -39,11 +37,8 @@ jobs: cd .. wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage chmod +x linuxdeployqt-continuous-x86_64.AppImage - ls -ltrah ./src ./linuxdeployqt-continuous-x86_64.AppImage ./src/ngPost.desktop -appimage -qmake=/opt/qt512/bin/qmake - ls -ltrah ./src mv ./ngPost-*-x86_64.AppImage ./ngPost-latest-x86_64.AppImage - ls -ltrah - name: Create Release id: create_release uses: meeDamian/github-release@2.0