From f5583312c5fa6d6a48998a78bdaabc133bb7941f Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Fri, 3 Jun 2022 13:32:08 -0700 Subject: [PATCH] Add matrix.apt_packages --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f7f51d3..77b0491c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,7 @@ jobs: include: - check_only: false - extra_test_args: '' + - apt_packages: '' - thing: stable target: x86_64-unknown-linux-gnu rust: stable @@ -120,7 +121,6 @@ jobs: - thing: x86_64-ios target: x86_64-apple-ios os: macos-latest - check_only: true - thing: i686-linux target: i686-unknown-linux-gnu @@ -164,8 +164,8 @@ jobs: shell: bash - run: rustup target add ${{ matrix.target }} - name: Install Linux cross-compile dependencies - if: "contains(matrix.target, 'linux') && !startsWith(matrix.target, 'x86_64')" - run: sudo apt install -y gcc-multilib g++-multilib + if: "matrix.apt_packages != ''" + run: sudo apt update && sudo apt install -y ${{ matrix.apt_packages }} shell: bash - name: Install nasm if: startsWith(matrix.os, 'windows')