disable vendoring until cargo vendor is fixed (ref rust-lang/cargo#…
#281
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: Build and Lint | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - kernel13 | |
| pull_request: | |
| env: | |
| RUST_BACKTRACE: full | |
| jobs: | |
| lint-rustfmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - uses: ./.github/actions/deps | |
| - name: Lint (rustfmt) | |
| run: cargo fmt --check | |
| # NOTE: Disabled until the following is resolved: | |
| # https://github.com/rust-lang/cargo/issues/7058 | |
| # check-vendor: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # submodules: 'true' | |
| # - uses: ./.github/actions/deps | |
| # - name: Check vendor | |
| # run: cargo oro vendor --check | |
| # check-udeps: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # submodules: 'true' | |
| # - uses: ./.github/actions/deps | |
| # - name: Check unused dependencies | |
| # run: cargo oro udeps | |
| # check-licenses: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # submodules: 'true' | |
| # - uses: ./.github/actions/deps | |
| # - name: Check licenses | |
| # run: cargo oro license --check | |
| build-artifacts: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| artifact: | |
| - aarch64-kernel | |
| - riscv64-kernel | |
| - x86_64-kernel | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - uses: ./.github/actions/deps | |
| - name: Build | |
| run: cargo oro build ${{ matrix.artifact }} | |
| - name: Build (release) | |
| run: cargo oro build ${{ matrix.artifact }} --release | |
| - name: Clippy | |
| run: cargo oro clippy ${{ matrix.artifact }} |