diff --git a/.github/scripts/create_debian.sh b/.github/scripts/create_debian.sh index bc99486..1a0284f 100755 --- a/.github/scripts/create_debian.sh +++ b/.github/scripts/create_debian.sh @@ -1,8 +1,6 @@ #!/bin/bash version=$1 -architecture=$(dpkg --print-architecture) - source_code=$(basename "$PWD") # Use sudo only if not running as root @@ -18,7 +16,6 @@ $SUDO apt-get install -y build-essential make devscripts debhelper #Replace placeholders inside the debian template files sed -i "s/@VERSION@/$version-1/" packaging/debian/changelog sed -i "s/@DATE@/$(date -R)/" packaging/debian/changelog -sed -i "s/@ARCHITECTURE@/$architecture/" packaging/debian/control cp -r packaging/debian . diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2784d04..17143fd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,7 +28,7 @@ jobs: can-create-release: ${{ steps.set_version.outputs.can_create_release}} steps: - name: Checkout code repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set app version id: set_version run: | @@ -100,7 +100,7 @@ jobs: steps: - name: Checkout code repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{env.APP_NAME}} @@ -131,7 +131,7 @@ jobs: ls -la ./artifacts/ - name: Upload debian artifacts to github - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{env.APP_NAME}}-${{matrix.distro}}-${{matrix.architecture}} path: | @@ -151,7 +151,7 @@ jobs: working-directory: ${{env.APP_NAME}} steps: - name: Checkout code repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{env.APP_NAME}} @@ -174,7 +174,7 @@ jobs: ls -la artifacts/ - name: Upload debian artifacts to github - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{env.APP_NAME}}-ubuntu path: | @@ -195,7 +195,7 @@ jobs: if: ${{needs.identify_version.outputs.can-create-release == 'true'}} steps: - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: merge-multiple: true - name: Release diff --git a/packaging/debian/control b/packaging/debian/control index 3d4f51b..5fb12fa 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -8,7 +8,7 @@ Homepage: https://github.com/analogdevicesinc/fru_tools Rules-Requires-Root: no Package: fru-tools -Architecture: @ARCHITECTURE@ +Architecture: any Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends} Description: Tools to display/manipulate FMC FRU info