From d5e919eb566b5c4523e06fb4298e29b1f46976e7 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Sat, 20 Jul 2024 07:31:23 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41a5d551..522e7d11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,43 +16,36 @@ jobs: strategy: fail-fast: false matrix: + toolchain: ['stable', 'nightly'] include: - { target: aarch64-apple-darwin, os: macos-14 } - { target: x86_64-apple-darwin, os: macos-13 } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest } - { target: x86_64-pc-windows-msvc, os: windows-latest } - runs-on: ${{ matrix.platform.os }} + runs-on: ${{ matrix.os }} env: HARFBUZZ_SYS_NO_PKG_CONFIG: true steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - toolchain: stable - override: true - profile: minimal - + toolchain: ${{ matrix.toolchain }} + target: ${{ matrix.target }} - name: Install packages + if: ${{ matrix.os == 'ubuntu-latest' }} run: | sudo apt-get update sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake - name: Install rustc target run: rustup target add aarch64-unknown-linux-gnu - - - name: Build arm64 simd - run: cargo build --target aarch64-unknown-linux-gnu - working-directory: simd - - - name: Build arm64 geometry - run: cargo build --target aarch64-unknown-linux-gnu - working-directory: geometry - name: Build - run: cargo build + run: cargo build --target ${{ matrix.target }} - name: Test + if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }} run: cargo test build_result: