Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test Rosetta Apple/Intel #1

Test Rosetta Apple/Intel

Test Rosetta Apple/Intel #1

name: Test Rosetta Apple/Intel
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
include:
- platform: macos-15
args: "--target aarch64-apple-darwin"
name: macOS Apple
- platform: macos-15-intel
args: "--target x86_64-apple-darwin"
name: macOS Intel
name: Build (${{ matrix.name }})
steps:
- uses: actions/checkout@v3
- name: Install Rust target
run: rustup target add $(echo "${{ matrix.args }}" | sed 's/--target //')
- name: Build Rosetta
run: cargo build --example rosetta --release ${{ matrix.args }} --features "serde serde_json check_rosetta" --verbose
- name: Run tests
run: cargo test ${{ matrix.args }} -- --nocapture
- name: Get system_profiler
run: system_profiler SPHardwareDataType
- name: Check architecture
run: arch; uname -m; uname -p; arch -x86_64 uname -m; arch -x86_64 uname -p; arch -arm64 uname -m; arch -arm64 uname -p