Skip to content

Commit

Permalink
fix: version logic + re-enable builds for noble & jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
SaicharanKandukuri committed Dec 19, 2024
1 parent 1e13494 commit 96b04a9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/anchor-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@ jobs:
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: -2} + 1))" >> $GITHUB_ENV
latest_tag=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
https://github.com/RandomCoderOrg/udroid-download \
| tail -n1 | cut -d / -f 3)

if [[ $latest_tag =~ R([0-9]+)$ ]]; then
current_release=${BASH_REMATCH[1]}
else
current_release=0
fi

next_release=$((current_release + 1))

echo "VERSIONTAG=V${udroid_version}ABR${next_release}" >> $GITHUB_ENV

- name: 📝 Generate Release Notes
run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,20 @@ jobs:
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: -2} + 1))" >> $GITHUB_ENV
latest_tag=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
https://github.com/RandomCoderOrg/udroid-download \
| tail -n1 | cut -d / -f 3)

if [[ $latest_tag =~ R([0-9]+)$ ]]; then
current_release=${BASH_REMATCH[1]}
else
current_release=0
fi

next_release=$((current_release + 1))

echo "VERSIONTAG=V${udroid_version}ABR${next_release}" >> $GITHUB_ENV

- name: 📝 Generate Release Notes
run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh
Expand Down
1 change: 0 additions & 1 deletion suites/jammy/.no-matrix-build

This file was deleted.

1 change: 0 additions & 1 deletion suites/noble/.no-matrix-build

This file was deleted.

0 comments on commit 96b04a9

Please sign in to comment.