Merge pull request #2 from sanchuanhehe/deb-dev

fix(debian): 移除 armhf 架构支持,更新交叉编译环境配置
This commit is contained in:
sanchuanhehe 2025-06-11 09:50:38 +08:00 committed by GitHub
commit 7d190fcbc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64, armhf]
arch: [amd64, arm64]
steps:
- name: Checkout repository
@ -48,7 +48,7 @@ jobs:
run: |
sudo dpkg --add-architecture ${{ matrix.arch }}
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf crossbuild-essential-${{ matrix.arch }}
sudo apt-get install -y gcc-aarch64-linux-gnu crossbuild-essential-${{ matrix.arch }}
- name: Update debian/changelog with version
run: |
@ -74,12 +74,6 @@ jobs:
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
echo "DEB_BUILD_OPTIONS=nocheck" >> $GITHUB_ENV
- name: Configure cross-compilation for armhf
if: matrix.arch == 'armhf'
run: |
echo "CC=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
echo "DEB_BUILD_OPTIONS=nocheck" >> $GITHUB_ENV
- name: Build DEB package
run: |
version="${{ steps.get_version.outputs.version }}"
@ -179,4 +173,4 @@ jobs:
with:
name: debian-repository-metadata
path: debs/Packages*
retention-days: 30
retention-days: 30