Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev authored Jul 20, 2024
1 parent 4d75357 commit d5e919e
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d5e919e

Please sign in to comment.