1cbd624adSopenharmony_ciname: OSX 2cbd624adSopenharmony_ci 3cbd624adSopenharmony_cion: 4cbd624adSopenharmony_ci pull_request: 5cbd624adSopenharmony_ci branches: [main] 6cbd624adSopenharmony_ci workflow_dispatch: 7cbd624adSopenharmony_ci 8cbd624adSopenharmony_cijobs: 9cbd624adSopenharmony_ci cross: 10cbd624adSopenharmony_ci name: Rust ${{matrix.target}} 11cbd624adSopenharmony_ci runs-on: macos-latest 12cbd624adSopenharmony_ci strategy: 13cbd624adSopenharmony_ci fail-fast: false 14cbd624adSopenharmony_ci matrix: 15cbd624adSopenharmony_ci target: 16cbd624adSopenharmony_ci # iOS targets don't work, since rust-embedded doesn't provide images. 17cbd624adSopenharmony_ci - x86_64-apple-darwin 18cbd624adSopenharmony_ci 19cbd624adSopenharmony_ci steps: 20cbd624adSopenharmony_ci - uses: actions/checkout@v2 21cbd624adSopenharmony_ci - uses: actions-rs/toolchain@v1 22cbd624adSopenharmony_ci with: 23cbd624adSopenharmony_ci toolchain: stable 24cbd624adSopenharmony_ci target: ${{matrix.target}} 25cbd624adSopenharmony_ci override: true 26cbd624adSopenharmony_ci - uses: actions-rs/cargo@v1 27cbd624adSopenharmony_ci with: 28cbd624adSopenharmony_ci use-cross: true 29cbd624adSopenharmony_ci command: check 30cbd624adSopenharmony_ci args: --target ${{matrix.target}} 31cbd624adSopenharmony_ci - uses: actions-rs/cargo@v1 32cbd624adSopenharmony_ci with: 33cbd624adSopenharmony_ci use-cross: true 34cbd624adSopenharmony_ci command: test 35cbd624adSopenharmony_ci args: --target ${{matrix.target}} 36cbd624adSopenharmony_ci - uses: actions-rs/cargo@v1 37cbd624adSopenharmony_ci with: 38cbd624adSopenharmony_ci use-cross: true 39cbd624adSopenharmony_ci command: test 40cbd624adSopenharmony_ci args: --target ${{matrix.target}} --features=compact 41