Workflow #235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow is for systematic testing of the crates. | |
| name: Test | |
| on: | |
| push: | |
| branches: ["rust-rewrite"] | |
| pull_request: | |
| branches: ["rust-rewrite"] | |
| workflow_call: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: | |
| # Refers to https://github.com/actions/runner-images | |
| - ubuntu-24.04 # x86 | |
| - macos-13 # x86 | |
| - macos-15 # arm | |
| - windows-2022 # x86 | |
| # https://github.com/actions/partner-runner-images | |
| - ubuntu-24.04-arm | |
| include: | |
| - image: ubuntu-24.04 | |
| targets: | |
| - i686-unknown-linux-gnu | |
| - x86_64-unknown-linux-gnu | |
| - image: macos-13 | |
| targets: | |
| - x86_64-apple-darwin | |
| - image: macos-15 | |
| targets: | |
| - aarch64-apple-darwin | |
| - image: windows-2022 | |
| targets: | |
| - i686-pc-windows-msvc | |
| - x86_64-pc-windows-msvc | |
| - x86_64-pc-windows-gnu | |
| - image: ubuntu-24.04-arm | |
| targets: | |
| - aarch64-unknown-linux-gnu | |
| - arm-unknown-linux-gnueabihf | |
| - armv7-unknown-linux-gnueabihf | |
| runs-on: ${{ matrix.image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Debug | |
| run: rustup target list | |
| - name: Build | |
| run: cargo build --workspace --exclude portablemc-py | |
| - name: Test | |
| run: cargo test --workspace --exclude portablemc-py |