Repository navigation
Fix Windows build: gate msvcrt behind host_env_extras in RustPython fork #3
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
| name: ci | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| name: Lint & Format (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Run checks | |
| run: make check | |
| test: | |
| name: Test (${{ matrix.os }} / ${{ matrix.target }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| target: x86_64-unknown-linux-musl | |
| setup: sudo apt-get install musl-tools | |
| - os: ubuntu-24.04-arm | |
| target: aarch64-unknown-linux-musl | |
| setup: sudo apt-get install musl-tools | |
| linker: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc | |
| - os: windows-2022 | |
| target: x86_64-pc-windows-msvc | |
| setup: git config --global core.longpaths true | |
| - os: macos-15-intel | |
| target: x86_64-apple-darwin | |
| setup: "" | |
| - os: macos-15 | |
| target: aarch64-apple-darwin | |
| setup: "" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.target }} | |
| - name: Setup | |
| if: matrix.setup != '' | |
| run: ${{ matrix.setup }} | |
| - name: Set linker | |
| if: matrix.linker != '' | |
| run: echo "${{ matrix.linker }}" >> $GITHUB_ENV | |
| - name: Run tests | |
| run: cargo test --target ${{ matrix.target }} |