From 6b47c70795a9054ad2555d64aa923e39ba3abcaa Mon Sep 17 00:00:00 2001 From: Xithrius Date: Sat, 2 Apr 2022 15:08:24 -0700 Subject: [PATCH] Added CI dependencies for specific operating systems --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3bb5e8..d51e2a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,34 @@ jobs: RA_TARGET: ${{ matrix.target }} steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.target }} + profile: minimal + override: true + + - name: Install Rust library source + if: matrix.target == 'x86_64-unknown-linux-gnu' + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.target }} + profile: minimal + override: true + components: rust-src + + - name: Update apt repositories + if: matrix.target == 'aarch64-unknown-linux-gnu' + run: sudo apt-get update + + - name: Install target toolchain + if: matrix.target == 'aarch64-unknown-linux-gnu' + run: sudo apt-get install gcc-aarch64-linux-gnu - name: Build run: cargo build --verbose --target ${{ matrix.target }} @@ -56,7 +83,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v3 - name: Install Rust run: |