From 67810682cd41d38892561015da420032dc425d6f Mon Sep 17 00:00:00 2001 From: Ginger Date: Mon, 8 Sep 2025 12:34:17 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20Install=20build=20dependencies=20=5Fbefo?= =?UTF-8?q?re=5F=20running=20the=20build=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/build-debian.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml index 3e0723ba..637d20fb 100644 --- a/.forgejo/workflows/build-debian.yml +++ b/.forgejo/workflows/build-debian.yml @@ -65,7 +65,7 @@ jobs: rust-version: nightly github-token: ${{ secrets.GH_PUBLIC_RO }} - - name: Get package revision and component + - name: Get package version and component id: package-meta run: | BASE_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r ".packages[] | select(.name == \"conduwuit\").version" | sed 's/~/-/g') @@ -92,7 +92,10 @@ jobs: - name: Check cargo-deb version id: cargo-deb-version - run: echo "version=$(curl -s \"https://index.crates.io/ca/rg/cargo-deb\" | tail -n1 | jq -r .vers)" >> $GITHUB_OUTPUT + run: | + VERSION=$(curl -s https://index.crates.io/ca/rg/cargo-deb | tail -n1 | jq -r .vers) + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Latest cargo-deb version: $VERSION" - name: Cache cargo-deb installation id: cache-cargo-deb @@ -105,18 +108,18 @@ jobs: if: steps.cache-cargo-deb.outputs.cache-hit != 'true' run: cargo binstall cargo-deb - - name: Run cargo-deb - id: cargo-deb - run: | - DEB_PATH=$(cargo deb --deb-version ${{ steps.package-meta.outputs.version }}) - echo "path=$DEB_PATH" >> $GITHUB_OUTPUT - - name: Install build dependencies run: | apt-get update -y # Build dependencies for rocksdb apt-get install -y clang liburing-dev + - name: Run cargo-deb + id: cargo-deb + run: | + DEB_PATH=$(cargo deb --deb-version ${{ steps.package-meta.outputs.version }}) + echo "path=$DEB_PATH" >> $GITHUB_OUTPUT + - name: Test deb installation run: | echo "Installing: ${{ steps.cargo-deb.outputs.path }}"