From 99aacf917bd9337cc32f98d377eaf846ec0f3b24 Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Tue, 19 Nov 2024 03:50:03 +0000 Subject: [PATCH] Reapply ".github/worflows: cover i686 build" This reverts commit 9b2a48741914df8fb6a27cf67b564635124e1794. --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be5c5ee..995e32e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,17 @@ jobs: matrix: toolchain: - stable - - beta - nightly + target: + - x86_64-unknown-linux-gnu + - i686-unknown-linux-gnu steps: - uses: actions/checkout@v3 - - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo build --verbose - - run: cargo build --features=fat_complete --verbose + - name: Install dependencies + if: matrix.target == 'i686-unknown-linux-gnu' + run: | + sudo apt-get update + sudo apt-get install -y gcc-multilib + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup target add ${{ matrix.target }} + - run: cargo build --verbose --target ${{ matrix.target }} + - run: cargo build --features=fat_complete --verbose --target ${{ matrix.target }}