From 921d3f8d5223c06f35c6c2d5b7d5388cde306509 Mon Sep 17 00:00:00 2001 From: 030 Date: Sun, 4 Feb 2024 09:43:32 +0100 Subject: [PATCH] build: Resolve 'GLIBC_2.34 not found in snapcraft' issue. --- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/snapcraft.yml | 18 ++++++++++++------ build/package/snap/snapcraft.yaml | 2 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec9ec49b..814f74db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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') }} - name: Create release run: ./scripts/build.sh env: diff --git a/.github/workflows/snapcraft.yml b/.github/workflows/snapcraft.yml index 20d6b318..25e6ef53 100644 --- a/.github/workflows/snapcraft.yml +++ b/.github/workflows/snapcraft.yml @@ -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/action-publish@v1.2.0 - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} - with: - snap: ${{ steps.snapcraft.outputs.snap }} - release: candidate + # - uses: snapcore/action-publish@v1.2.0 + # env: + # SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} + # with: + # snap: ${{ steps.snapcraft.outputs.snap }} + # release: candidate diff --git a/build/package/snap/snapcraft.yaml b/build/package/snap/snapcraft.yaml index 79790c06..3b837c37 100644 --- a/build/package/snap/snapcraft.yaml +++ b/build/package/snap/snapcraft.yaml @@ -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.