mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-09 19:13:03 +02:00
fix: Install build dependencies _before_ running the build 💀
This commit is contained in:
parent
53a7e815da
commit
67810682cd
1 changed files with 11 additions and 8 deletions
|
@ -65,7 +65,7 @@ jobs:
|
||||||
rust-version: nightly
|
rust-version: nightly
|
||||||
github-token: ${{ secrets.GH_PUBLIC_RO }}
|
github-token: ${{ secrets.GH_PUBLIC_RO }}
|
||||||
|
|
||||||
- name: Get package revision and component
|
- name: Get package version and component
|
||||||
id: package-meta
|
id: package-meta
|
||||||
run: |
|
run: |
|
||||||
BASE_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r ".packages[] | select(.name == \"conduwuit\").version" | sed 's/~/-/g')
|
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
|
- name: Check cargo-deb version
|
||||||
id: 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
|
- name: Cache cargo-deb installation
|
||||||
id: cache-cargo-deb
|
id: cache-cargo-deb
|
||||||
|
@ -105,18 +108,18 @@ jobs:
|
||||||
if: steps.cache-cargo-deb.outputs.cache-hit != 'true'
|
if: steps.cache-cargo-deb.outputs.cache-hit != 'true'
|
||||||
run: cargo binstall cargo-deb
|
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
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
# Build dependencies for rocksdb
|
# Build dependencies for rocksdb
|
||||||
apt-get install -y clang liburing-dev
|
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
|
- name: Test deb installation
|
||||||
run: |
|
run: |
|
||||||
echo "Installing: ${{ steps.cargo-deb.outputs.path }}"
|
echo "Installing: ${{ steps.cargo-deb.outputs.path }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue