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 9b1facd commit 2aa3b4b
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ jobs:
matrix:
toolchain: [stable, nightly]
platform:
- { 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 }
# native targets
- { target: aarch64-apple-darwin, os: macos-14, native: true }
- { target: x86_64-apple-darwin, os: macos-13, native: true }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, native: true }
- { target: x86_64-pc-windows-msvc, os: windows-latest, native: true }
# arm64 linux
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest, native: false }
# all servo's android targets
- { target: aarch64-linux-android, os: ubuntu-latest, native: false }
- { target: armv7-linux-androideabi, os: ubuntu-latest, native: false }
- { target: i686-linux-android, os: ubuntu-latest, native: false }
- { target: x86_64-linux-android, os: ubuntu-latest, native: false }
runs-on: ${{ matrix.platform.os }}
env:
HARFBUZZ_SYS_NO_PKG_CONFIG: true
Expand All @@ -38,22 +45,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
- name: Build arm64 simd
if: ${{ matrix.platform.target == 'aarch64-unknown-linux-gnu' }}
- name: Build simd
if: ${{ !matrix.platform.native }}
run: cargo build --target ${{ matrix.platform.target }}
working-directory: simd

- name: Build arm64 geometry
if: ${{ matrix.platform.target == 'aarch64-unknown-linux-gnu' }}
- name: Build geometry
if: ${{ !matrix.platform.native }}
run: cargo build --target ${{ matrix.platform.target }}
working-directory: geometry

- name: Build
if: ${{ matrix.platform.target != 'aarch64-unknown-linux-gnu' }}
if: ${{ matrix.platform.native }}
run: cargo build --target ${{ matrix.platform.target }}

- name: Test
if: ${{ matrix.platform.target != 'aarch64-unknown-linux-gnu' }}
if: ${{ matrix.platform.native }}
run: cargo test

build_result:
Expand Down

0 comments on commit 2aa3b4b

Please sign in to comment.