Skip to content
Myr

Sync CI config with bat

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

authored by David Peter · committed by David Peter · parent 34558bf · Browse files · 1 file+11 added−5 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+11 added−5 removed

  • other:+11 added−5 removed

1 file+11 added−5 removed

modified:.github/workflows/CICD.yml+11 added-5 removed
25 unmodified lines
26 with:27 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}28 default: true29 profile: minimal # minimal component installation (ie, no documentation)30 components: clippy30 components: clippy, rustfmt31 - name: Ensure `cargo fmt` has been run32 uses: actions-rs/cargo@v133 with:34 command: fmt35 args: -- --check36 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)37 uses: actions-rs/cargo@v138 with:39 command: clippy35 args: --all-targets --all-features40 args: --locked --all-targets --all-features41 - name: Run tests42 uses: actions-rs/cargo@v143 with:44 command: test
59 unmodified lines
104 uses: actions-rs/cargo@v1105 with:106 use-cross: ${{ matrix.job.use-cross }}107 command: build103 args: --release --target=${{ matrix.job.target }}108 args: --locked --release --target=${{ matrix.job.target }}109110 - name: Strip debug information from executable111 id: strip112 shell: bash
33 unmodified lines
146 - name: Set testing options147 id: test-options148 shell: bash149 run: |150 # test only library unit tests and binary for arm-type targets151 unset CARGO_TEST_OPTIONS146 unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--bin ${PROJECT_NAME}" ;; esac;152 unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--lib --bin ${PROJECT_NAME}" ;; esac;153 echo ::set-output name=CARGO_TEST_OPTIONS::${CARGO_TEST_OPTIONS}154155 - name: Run tests156 uses: actions-rs/cargo@v1157 with:158 use-cross: ${{ matrix.job.use-cross }}159 command: test154 args: --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}160 args: --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}161162 - name: Create tarball163 id: package164 shell: bash
175 unmodified lines