Skip to content
Myr

CI: remove use of actions-rs/cargo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

actions-rs is currently inactive and has an issue like actions-rs/cargo#216

authored by Miles Liu · committed by Miles Liu · parent 5e7a870 · Browse files · 1 file+18 added−26 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−26 removed

  • other:+18 added−26 removed

1 file+18 added−26 removed

modified:.github/workflows/CICD.yml+18 added-26 removed
26 unmodified lines
27 default: true28 profile: minimal # minimal component installation (ie, no documentation)29 components: clippy, rustfmt30 - name: Ensure `cargo fmt` has been run31 uses: actions-rs/cargo@v132 with:33 command: fmt34 args: -- --check31 run: cargo fmt --check32 - name: Ensure MSRV is set in `clippy.toml`33 run: grep "^msrv = \"${{ env.MIN_SUPPORTED_RUST_VERSION }}\"\$" clippy.toml34 - name: Run clippy38 uses: actions-rs/cargo@v139 with:40 command: clippy41 args: --locked --all-targets --all-features35 run: cargo clippy --locked --all-targets --all-features3637 min_version:38 name: Minimum supported rust version39 runs-on: ubuntu-20.04
8 unmodified lines
48 default: true49 components: clippy50 profile: minimal51 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)58 uses: actions-rs/cargo@v159 with:60 command: clippy61 args: --locked --all-targets --all-features52 run: cargo clippy --locked --all-targets --all-features53 - name: Run tests63 uses: actions-rs/cargo@v164 with:65 command: test66 args: --locked54 run: cargo test --locked5556 build:57 name: ${{ matrix.job.os }} (${{ matrix.job.target }})58 runs-on: ${{ matrix.job.os }}
50 unmodified lines
109 rustup default110 cargo -V111 rustc -V112113 - name: Set cargo cmd114 run: |115 echo "CARGO_CMD=cargo" >> $GITHUB_ENV116 echo "CARGO_CMD=cargo" >> $Env:GITHUB_ENV117118 - name: Install cross119 if: ${{ matrix.job.use-cross == true }}120 run: |121 cargo install cross122 echo "CARGO_CMD=cross" >> $GITHUB_ENV123 echo "CARGO_CMD=cross" >> $Env:GITHUB_ENV124125 - name: Build126 uses: actions-rs/cargo@v1127 with:128 use-cross: ${{ matrix.job.use-cross }}129 command: build130 args: --locked --release --target=${{ matrix.job.target }}126 run: ${{ env.CARGO_CMD }} build --locked --release --target=${{ matrix.job.target }}127128 - name: Strip debug information from executable129 id: strip130 shell: bash
39 unmodified lines
170 unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--bin ${PROJECT_NAME}" ;; esac;171 echo "CARGO_TEST_OPTIONS=${CARGO_TEST_OPTIONS}" >> $GITHUB_OUTPUT172173 - name: Run tests178 uses: actions-rs/cargo@v1179 with:180 use-cross: ${{ matrix.job.use-cross }}181 command: test182 args: --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}174 run: ${{ env.CARGO_CMD }} test --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}175176 - name: Generate completions177 id: completions178 shell: bash
179 unmodified lines