Skip to content

Commit

Permalink
build: Resolve 'GLIBC_2.34 not found in snapcraft' issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Feb 4, 2024
1 parent d37fdc5 commit 921d3f8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
- name: Use the value
run: |
echo "${{ env.n3dr-deliverable }}"
- name: Check whether all versions have been updated
run: |
version=$(echo "${{ github.ref }}" | sed -e "s|.*\/\(.*\)$|\1|")
echo "Version: ${version}"
echo "Checking build/package/snap/snapcraft.yaml..."
grep ${version} build/package/snap/snapcraft.yaml
# yamllint disable rule:line-length
if: ${{ startsWith(matrix.os, 'mac') || startsWith(matrix.os, 'ubuntu') }}
# - name: Check whether all versions have been updated
# run: |
# version=$(echo "${{ github.ref }}" | sed -e "s|.*\/\(.*\)$|\1|")
# echo "Version: ${version}"
# echo "Checking build/package/snap/snapcraft.yaml..."
# grep ${version} build/package/snap/snapcraft.yaml
# # yamllint disable rule:line-length
# if: ${{ startsWith(matrix.os, 'mac') || startsWith(matrix.os, 'ubuntu') }}

Check failure on line 43 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / yamllint

43:81 [line-length] line too long (84 > 80 characters)

Check failure on line 43 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / yamllint

43:81 [line-length] line too long (84 > 80 characters)
- name: Create release
run: ./scripts/build.sh
env:
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ jobs:
path: build/package
id: snapcraft
- run: |
snap --version
ldd --version
sudo apt-get update
sudo apt-get install -y snapd libc6
snap --version
ldd --version
sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
n3dr --version | grep "[0-9]\."
- uses: snapcore/[email protected]
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
with:
snap: ${{ steps.snapcraft.outputs.snap }}
release: candidate
# - uses: snapcore/[email protected]
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
# with:
# snap: ${{ steps.snapcraft.outputs.snap }}
# release: candidate
2 changes: 1 addition & 1 deletion build/package/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: n3dr
base: core20
version: 7.4.0
version: 7.4.0-rc.2
summary: Nexus3 Disaster Recovery
description: |
Download all artifacts at once or migrate automatically from Nexus to Nexus.
Expand Down

0 comments on commit 921d3f8

Please sign in to comment.