mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system: small changes for better debugging
In order to make it easier to see what's happening inside get-atomic-buildnr.sh write the result to a file that can be read by the caller. Not quite as elegant, but hopefully more practical to see what's going wrong when no new build number is created. Make sure that post-releasenotes is successfull by actually posting a release artifact (apparently the gh release action otherwise quietly fails). Try to ensure we find the Android APK when uploading to the release. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c33e05c1d4
commit
30efede730
9 changed files with 26 additions and 25 deletions
7
.github/workflows/android.yml
vendored
7
.github/workflows/android.yml
vendored
|
|
@ -25,8 +25,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version="$(bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for non-push build runs
|
||||
if: github.event_name != 'push'
|
||||
|
|
@ -70,13 +69,13 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
Subsurface-mobile*.apk
|
||||
"$GITHUB_WORKSPACE"/Subsurface-mobile*.apk
|
||||
|
||||
- name: delete the keystore
|
||||
if: github.event_name == 'push'
|
||||
|
|
|
|||
3
.github/workflows/fedora-copr-build.yml
vendored
3
.github/workflows/fedora-copr-build.yml
vendored
|
|
@ -29,7 +29,8 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
version=$(<release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup API token for copr-cli
|
||||
|
|
|
|||
3
.github/workflows/linux-snap.yml
vendored
3
.github/workflows/linux-snap.yml
vendored
|
|
@ -24,8 +24,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
|
|||
7
.github/workflows/linux-trusty-5.12.yml
vendored
7
.github/workflows/linux-trusty-5.12.yml
vendored
|
|
@ -21,8 +21,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
@ -56,14 +55,14 @@ jobs:
|
|||
- name: prepare release artifacts
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
mv Subsurface.AppImage Subsurface-v${{ steps.version_number.outputs.version }}.AppImage
|
||||
mv Subsurface.AppImage Subsurface-v(<release-version).AppImage
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
|
|
|||
5
.github/workflows/mac.yml
vendored
5
.github/workflows/mac.yml
vendored
|
|
@ -18,8 +18,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
@ -59,7 +58,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
|
|
|||
9
.github/workflows/post-releasenotes.yml
vendored
9
.github/workflows/post-releasenotes.yml
vendored
|
|
@ -12,20 +12,21 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: atomically create or retrieve the build number and assemble release notes
|
||||
id: version_number
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash -x ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
bash scripts/create-releasenotes.sh ${{ github.event.head_commit.id }}
|
||||
|
||||
# ironically, we have to upload a file, otherwise this won't create a release with just the release notes
|
||||
- name: publish release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
files: gh_release_notes
|
||||
body_path: gh_release_notes
|
||||
|
|
|
|||
3
.github/workflows/ubuntu-launchpad-build.yml
vendored
3
.github/workflows/ubuntu-launchpad-build.yml
vendored
|
|
@ -18,8 +18,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: Setup build dependencies
|
||||
run: |
|
||||
|
|
|
|||
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
|
|
@ -21,8 +21,7 @@ jobs:
|
|||
id: version_number
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
version=$(bash ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release")
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
@ -52,7 +51,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
tag_name: v$(<release-version)
|
||||
repository: subsurface/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue