You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/CICD.yml
+45-20Lines changed: 45 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -993,6 +993,7 @@ jobs:
993
993
components: llvm-tools-preview
994
994
- uses: taiki-e/install-action@nextest
995
995
- uses: taiki-e/install-action@grcov
996
+
- uses: taiki-e/install-action@cargo-llvm-cov
996
997
- uses: Swatinem/rust-cache@v2
997
998
- name: Run sccache-cache
998
999
uses: mozilla-actions/sccache-action@v0.0.6
@@ -1004,29 +1005,37 @@ jobs:
1004
1005
run: |
1005
1006
## VARs setup
1006
1007
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
1008
+
1007
1009
# toolchain
1008
1010
TOOLCHAIN="nightly" ## default to "nightly" toolchain (required for certain required unstable compiler flags) ## !maint: refactor when stable channel has needed support
1011
+
1009
1012
# * specify gnu-type TOOLCHAIN for windows; `grcov` requires gnu-style code coverage data files
1010
1013
case ${{ matrix.job.os }} in windows-*) TOOLCHAIN="$TOOLCHAIN-x86_64-pc-windows-gnu" ;; esac;
1014
+
1011
1015
# * use requested TOOLCHAIN if specified
1012
1016
if [ -n "${{ matrix.job.toolchain }}" ]; then TOOLCHAIN="${{ matrix.job.toolchain }}" ; fi
1013
1017
outputs TOOLCHAIN
1018
+
1014
1019
# target-specific options
1015
1020
# * CARGO_FEATURES_OPTION
1016
1021
CARGO_FEATURES_OPTION='--all-features' ; ## default to '--all-features' for code coverage
1017
1022
if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ; fi
1018
1023
outputs CARGO_FEATURES_OPTION
1024
+
1019
1025
# * CODECOV_FLAGS
1020
1026
CODECOV_FLAGS=$( echo "${{ matrix.job.os }}" | sed 's/[^[:alnum:]]/_/g' )
1021
1027
outputs CODECOV_FLAGS
1028
+
1022
1029
- name: Install/setup prerequisites
1023
1030
shell: bash
1024
1031
run: |
1025
1032
## Install/setup prerequisites
1026
1033
case '${{ matrix.job.os }}' in
1027
-
macos-latest) brew install coreutils ;; # needed for testing
1028
-
esac
1029
-
case '${{ matrix.job.os }}' in
1034
+
macos-latest)
1035
+
# needed for testing
1036
+
brew install coreutils
1037
+
;;
1038
+
1030
1039
ubuntu-latest)
1031
1040
# pinky is a tool to show logged-in users from utmp, and gecos fields from /etc/passwd.
1032
1041
# In GitHub Action *nix VMs, no accounts log in, even the "runner" account that runs the commands. The account also has empty gecos fields.
@@ -1040,11 +1049,13 @@ jobs:
1040
1049
touch /home/runner/.project
1041
1050
echo "foo" > /home/runner/.plan
1042
1051
;;
1052
+
1053
+
windows-latest)
1054
+
# Update binutils if MinGW due to https://github.com/rust-lang/rust/issues/112368
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
0 commit comments