@@ -27,13 +27,13 @@ jobs:
2727 # clippy::match_bool is allowed by default from Rust 1.45.0, see
2828 # https://github.com/rust-lang/rust-clippy/commit/e1d13c34b0beaea9a5fbf13687672ef85e779d9f
2929 args: --all-targets --all-features -- --allow clippy::match_bool
30− - name: Test
30+ - name: Run tests
3131 uses: actions-rs/cargo@v1
3232 with:
3333 command: test
3434
3535 test_with_new_syntaxes_and_themes:
36− name: Test with new syntaxes and themes
36+ name: Run tests with updated syntaxes and themes
3737 runs-on: ubuntu-18.04
3838 steps:
3939 - name: Git checkout
@@ -94,8 +94,9 @@ jobs:
9494 - { os: windows-2019 , target: x86_64-pc-windows-gnu }
9595 - { os: windows-2019 , target: x86_64-pc-windows-msvc }
9696 steps:
97− - name: Git checkout
97+ - name: Checkout source code
9898 uses: actions/checkout@v2
99+
99100 - name: Install prerequisites
100101 shell: bash
101102 run: |
@@ -103,6 +104,7 @@ jobs:
103104 arm-unknown-linux-gnueabihf) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
104105 aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
105106 esac
107+
106108 - name: Extract crate information
107109 shell: bash
108110 run: |
@@ -110,6 +112,7 @@ jobs:
110112 echo "PROJECT_VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)" >> $GITHUB_ENV
111113 echo "PROJECT_MAINTAINER=$(sed -n 's/^authors = \["\(.*\)"\]/\1/p' Cargo.toml)" >> $GITHUB_ENV
112114 echo "PROJECT_HOMEPAGE=$(sed -n 's/^homepage = "\(.*\)"/\1/p' Cargo.toml)" >> $GITHUB_ENV
115+
113116 - name: Install Rust toolchain
114117 uses: actions-rs/toolchain@v1
115118 with:
@@ -117,7 +120,8 @@ jobs:
117120 target: ${{ matrix.job.target }}
118121 override: true
119122 profile: minimal # minimal component installation (ie, no documentation)
120− - name: Info
123+
124+ - name: Show version information (Rust, cargo, GCC)
121125 shell: bash
122126 run: |
123127 gcc --version || true
@@ -126,13 +130,15 @@ jobs:
126130 rustup default
127131 cargo -V
128132 rustc -V
133+
129134 - name: Build
130135 uses: actions-rs/cargo@v1
131136 with:
132137 use-cross: ${{ matrix.job.use-cross }}
133138 command: build
134139 args: --release --target=${{ matrix.job.target }}
135− - name: Strip release bin
140+
141+ - name: Strip debug information from executable
136142 id: strip
137143 shell: bash
138144 run: |
@@ -167,7 +173,8 @@ jobs:
167173 # Let subsequent steps know where to find the (stripped) bin
168174 echo ::set-output name=BIN_PATH::${BIN_PATH}
169175 echo ::set-output name=BIN_NAME::${BIN_NAME}
170− - name: Calculate test options
176+
177+ - name: Set testing options
171178 id: test-options
172179 shell: bash
173180 run: |
@@ -175,49 +182,57 @@ jobs:
175182 unset CARGO_TEST_OPTIONS
176183 unset CARGO_TEST_OPTIONS ; case ${{ matrix.job.target }} in arm-* | aarch64-*) CARGO_TEST_OPTIONS="--lib --bin ${PROJECT_NAME}" ;; esac;
177184 echo ::set-output name=CARGO_TEST_OPTIONS::${CARGO_TEST_OPTIONS}
178− - name: Test
185+
186+ - name: Run tests
179187 uses: actions-rs/cargo@v1
180188 with:
181189 use-cross: ${{ matrix.job.use-cross }}
182190 command: test
183191 args: --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
184− - name: bat test run
192+
193+ - name: Run bat
185194 uses: actions-rs/cargo@v1
186195 with:
187196 use-cross: ${{ matrix.job.use-cross }}
188197 command: run
189198 args: --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs
190− - name: bat diagnostics output
199+
200+ - name: Show diagnostics (bat --diagnostic)
191201 uses: actions-rs/cargo@v1
192202 with:
193203 use-cross: ${{ matrix.job.use-cross }}
194204 command: run
195205 args: --target=${{ matrix.job.target }} -- --paging=never --color=always --theme=ansi Cargo.toml src/config.rs --diagnostic
196− - name: Check features regex-onig
206+
207+ - name: "Feature check: regex-onig"
197208 uses: actions-rs/cargo@v1
198209 with:
199210 use-cross: ${{ matrix.job.use-cross }}
200211 command: check
201212 args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig
202− - name: Check features regex-onig,git
213+
214+ - name: "Feature check: regex-onig,git"
203215 uses: actions-rs/cargo@v1
204216 with:
205217 use-cross: ${{ matrix.job.use-cross }}
206218 command: check
207219 args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git
208− - name: Check features regex-onig,paging
220+
221+ - name: "Feature check: regex-onig,paging"
209222 uses: actions-rs/cargo@v1
210223 with:
211224 use-cross: ${{ matrix.job.use-cross }}
212225 command: check
213226 args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,paging
214− - name: Check features regex-onig,git,paging
227+
228+ - name: "Feature check: regex-onig,git,paging"
215229 uses: actions-rs/cargo@v1
216230 with:
217231 use-cross: ${{ matrix.job.use-cross }}
218232 command: check
219233 args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git,paging
220− - name: Package
234+
235+ - name: Create tarball
221236 id: package
222237 shell: bash
223238 run: |
@@ -254,7 +269,8 @@ jobs:
254269
255270 # Let subsequent steps know where to find the compressed package
256271 echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"
257− - name: Debian package
272+
273+ - name: Create Debian package
258274 id: debian-package
259275 shell: bash
260276 if: startsWith(matrix.job.os, 'ubuntu')
@@ -362,23 +378,26 @@ jobs:
362378 # build dpkg
363379 fakeroot dpkg-deb --build "${DPKG_DIR}" "${DPKG_PATH}"
364380
365− - name: Upload package artifact
381+ - name: "Artifact upload: tarball"
366382 uses: actions/upload-artifact@master
367383 with:
368384 name: ${{ steps.package.outputs.PKG_NAME }}
369385 path: ${{ steps.package.outputs.PKG_PATH }}
370− - name: Upload Debian package artifact
386+
387+ - name: "Artifact upload: Debian package"
371388 uses: actions/upload-artifact@master
372389 if: steps.debian-package.outputs.DPKG_NAME
373390 with:
374391 name: ${{ steps.debian-package.outputs.DPKG_NAME }}
375392 path: ${{ steps.debian-package.outputs.DPKG_PATH }}
393+
376394 - name: Check for release
377395 id: is-release
378396 shell: bash
379397 run: |
380398 unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
381399 echo ::set-output name=IS_RELEASE::${IS_RELEASE}
400+
382401 - name: Publish archives and packages
383402 uses: softprops/action-gh-release@v1
384403 if: steps.is-release.outputs.IS_RELEASE