From 687fb62a0de6aadde73a801eef84c411bf369d4f Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:09:42 +0530 Subject: [PATCH 01/12] fix workflow attempt 1 --- .github/workflows/build-and-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 47b3f3d..75d027e 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -21,7 +21,7 @@ jobs: git submodule update - name: Build tarballs run: | - sudo bash build.sh -s kinetic -v raw -a all + sudo bash build.sh -s kinetic -v raw -a amd64 - name: upload artifacts uses: actions/upload-artifact@v3 @@ -39,9 +39,9 @@ jobs: with: name: raw-tarballs - name: Compute release tag - run: sudo bash .github/scripts/compute-release-tag.sh + run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/compute-release-tag.sh - name: Generate release notes - run: sudo bash .github/scripts/generate-release-notes.sh + run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh - name: Create Release id: create_release uses: actions/create-release@v1 From 891999e5c3a9336175b52030640ffb737777ad3e Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:18:59 +0530 Subject: [PATCH 02/12] Atempt to fix workflow 2 --- .github/workflows/build-and-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 75d027e..06d7436 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -39,9 +39,9 @@ jobs: with: name: raw-tarballs - name: Compute release tag - run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/compute-release-tag.sh + run: sudo bash /home/runner/work/udroid-download/.github/scripts/compute-release-tag.sh - name: Generate release notes - run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh + run: sudo bash /home/runner/work/udroid-download/.github/scripts/generate-release-notes.sh - name: Create Release id: create_release uses: actions/create-release@v1 From 5ecbfbd84e93ffc93090a5feb36669961148e945 Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:22:13 +0530 Subject: [PATCH 03/12] attempt to fix workflow 3 --- .github/scripts/compute-release-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/compute-release-tag.sh b/.github/scripts/compute-release-tag.sh index 84cfc7b..51602a5 100644 --- a/.github/scripts/compute-release-tag.sh +++ b/.github/scripts/compute-release-tag.sh @@ -19,4 +19,4 @@ udroid_download=$( version="V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" # export version to github environment -echo "VERSIONTAG=$version" >> "$GITHUB_ENV" +echo "VERSIONTAG=$version" >> $GITHUB_ENV From 3828b236e1eddc44c3795a75fcea9228b7037256 Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:38:07 +0530 Subject: [PATCH 04/12] . --- .github/workflows/build-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 06d7436..722ed86 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -39,7 +39,7 @@ jobs: with: name: raw-tarballs - name: Compute release tag - run: sudo bash /home/runner/work/udroid-download/.github/scripts/compute-release-tag.sh + run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/compute-release-tag.sh - name: Generate release notes run: sudo bash /home/runner/work/udroid-download/.github/scripts/generate-release-notes.sh - name: Create Release From ab1eca8ce453cc7eda21608763d10142b84ff46b Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:43:20 +0530 Subject: [PATCH 05/12] attempt to fix workflow 6 --- .github/scripts/compute-release-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/compute-release-tag.sh b/.github/scripts/compute-release-tag.sh index 51602a5..8ca701a 100644 --- a/.github/scripts/compute-release-tag.sh +++ b/.github/scripts/compute-release-tag.sh @@ -19,4 +19,4 @@ udroid_download=$( version="V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" # export version to github environment -echo "VERSIONTAG=$version" >> $GITHUB_ENV +echo "export VERSIONTAG=$version" >> $GITHUB_ENV From 34041eb4c11160fd5a9e9af31cf8c1ad7c87ea7c Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 12:56:30 +0530 Subject: [PATCH 06/12] .. --- .github/scripts/compute-release-tag.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/scripts/compute-release-tag.sh b/.github/scripts/compute-release-tag.sh index 8ca701a..bcf0a99 100644 --- a/.github/scripts/compute-release-tag.sh +++ b/.github/scripts/compute-release-tag.sh @@ -16,7 +16,5 @@ udroid_download=$( | tail -n1 | cut -d / -f 3 ) -version="V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" - # export version to github environment -echo "export VERSIONTAG=$version" >> $GITHUB_ENV +echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV From 141aec66da36ca8d3e525ef52b2824e1f7356e21 Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 13:01:59 +0530 Subject: [PATCH 07/12] ... --- .github/scripts/compute-release-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/compute-release-tag.sh b/.github/scripts/compute-release-tag.sh index bcf0a99..3efd4a8 100644 --- a/.github/scripts/compute-release-tag.sh +++ b/.github/scripts/compute-release-tag.sh @@ -17,4 +17,4 @@ udroid_download=$( ) # export version to github environment -echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV +echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> "$GITHUB_ENV" From c65f036008d18e0856e62abd9787675c31df216c Mon Sep 17 00:00:00 2001 From: saicharankandukuri Date: Sun, 5 Jun 2022 13:42:55 +0530 Subject: [PATCH 08/12] attempt to fix workflow --- .github/workflows/build-and-release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 722ed86..e1c1e4b 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -39,7 +39,16 @@ jobs: with: name: raw-tarballs - name: Compute release tag - run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/compute-release-tag.sh + run: | + udroid_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \ + https://github.com/RandomCoderOrg/ubuntu-on-android \ + | tail -n1 | cut -d / -f 3 | cut -d v -f 2- ) + udroid_download=$( + git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \ + https://github.com/RandomCoderOrg/udroid-download \ + | tail -n1 | cut -d / -f 3 + ) + echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV - name: Generate release notes run: sudo bash /home/runner/work/udroid-download/.github/scripts/generate-release-notes.sh - name: Create Release From 9a1be3051ebea7821ddd86e0b7be3b36168077a7 Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 17:22:04 +0530 Subject: [PATCH 09/12] Update build-and-release.yml --- .github/workflows/build-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index e1c1e4b..5ce4928 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -50,7 +50,7 @@ jobs: ) echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV - name: Generate release notes - run: sudo bash /home/runner/work/udroid-download/.github/scripts/generate-release-notes.sh + run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh - name: Create Release id: create_release uses: actions/create-release@v1 From aea077bf84891e76b5cf4720a9773c5e1443884a Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 17:51:30 +0530 Subject: [PATCH 10/12] remove duplicate --- .github/workflows/build-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 5ce4928..390305d 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -70,6 +70,6 @@ jobs: assets+=("-a" "$asset") done tag_name="${VERSIONTAG}" - hub release create "${assets[@]}" -m "$tag_name" "$tag_name" + hub release create "${assets[@]}" -m "$tag_name" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5b9d42dfde345c6d92bfc8afebffc2d15cbef487 Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 18:08:50 +0530 Subject: [PATCH 11/12] use hub to edit --- .github/workflows/build-and-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 390305d..74aac0f 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -70,6 +70,6 @@ jobs: assets+=("-a" "$asset") done tag_name="${VERSIONTAG}" - hub release create "${assets[@]}" -m "$tag_name" + hub release edit -F release.md "${assets[@]}" -m "$tag_name" "$tag_name" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From fb605f0943f006e36d07411948cf5edf7a5caf1c Mon Sep 17 00:00:00 2001 From: Zman-1x1 Date: Sun, 5 Jun 2022 19:58:20 +0530 Subject: [PATCH 12/12] do full build --- .github/workflows/build-and-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 74aac0f..a0118fd 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -21,7 +21,9 @@ jobs: git submodule update - name: Build tarballs run: | - sudo bash build.sh -s kinetic -v raw -a amd64 + sudo bash build.sh -s impish -v raw -a all + sudo bash build.sh -s jammy -v raw -a all + sudo bash build.sh -s kinetic -v raw -a all - name: upload artifacts uses: actions/upload-artifact@v3