[cc] aarch64 fixes, CI buff #1344
Workflow file for this run
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: Rust | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| linux-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: System info | |
| run: | | |
| echo "=== Architecture ===" | |
| uname -a | |
| echo "=== CPU ===" | |
| lscpu | head -20 | |
| echo "=== Toolchain ===" | |
| rustc --version | |
| cargo --version | |
| cc --version || true | |
| as --version || true | |
| - name: Fetch | |
| run: cargo fetch | |
| - name: Build | |
| run: cargo build --release --verbose | |
| - name: Run tests | |
| run: cargo test --release --verbose | |
| - name: Run fmt check | |
| run: cargo fmt --all -- --check | |
| macos-homebrew: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: sfackler/actions/rustup@master | |
| - run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT | |
| id: rust-version | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry/index | |
| key: index-${{ runner.os }}-${{ github.run_number }} | |
| restore-keys: | | |
| index-${{ runner.os }}- | |
| - run: cargo generate-lockfile | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry/cache | |
| key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }} | |
| - name: System info | |
| run: | | |
| echo "=== Architecture ===" | |
| uname -a | |
| arch | |
| echo "=== Toolchain ===" | |
| rustc --version | |
| cargo --version | |
| cc --version || true | |
| as -version || true | |
| echo "=== Xcode ===" | |
| xcodebuild -version || true | |
| - name: Fetch | |
| run: cargo fetch | |
| - name: Build | |
| run: cargo build --release --verbose | |
| - name: Run tests | |
| run: cargo test --release --verbose | |
| - name: Run cc tests (detailed) | |
| if: failure() | |
| run: | | |
| echo "=== Re-running cc tests with more detail ===" | |
| cargo test --release -p posixutils-cc --verbose -- --nocapture --test-threads=1 2>&1 | head -500 |