Skip to content

Commit d185a89

Browse files
committed
fix
1 parent 74fea6e commit d185a89

File tree

2 files changed

+6
-35
lines changed

2 files changed

+6
-35
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -726,42 +726,14 @@ jobs:
726726
runs-on: ubuntu-latest
727727
steps:
728728

729-
# Cargo-make boilerplate
730-
- name: Get cargo-make version
731-
id: cargo-make-version
732-
run: |
733-
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)"
734-
shell: bash
735-
- name: Attempt to load cached cargo-make
736-
uses: actions/cache@v2
737-
id: cargo-make-cache
738-
with:
739-
path: |
740-
~/.cargo/bin/cargo-make
741-
~/.cargo/bin/cargo-make.exe
742-
key: ${{ runner.os }}-make-${{ steps.cargo-make-version.outputs.hash }}
743-
- name: Install cargo-make
744-
if: steps.cargo-make-cache.outputs.cache-hit != 'true'
745-
uses: actions-rs/[email protected]
746-
with:
747-
crate: cargo-make
748-
version: latest
729+
# We don't expect to keep being clippy-clean on nightly Rust,
730+
# so the "toolchain boilerplate" is deliberately omitted
749731

750-
# Check if we need to force-nightly
751-
- name: Check if we need to force-nightly
752-
id: force_nightly
753-
run: |
754-
force_nightly_status=$(cargo make check-needs-force-nightly-ci)
755-
echo "::set-output name=force_nightly_status::${force_nightly_status}"
756732
# Clippy job > Install and run clippy steps
757-
758-
# We don't expect to keep being clippy-clean on nightly Rust
759733
- name: Install clippy
760-
if: steps.force_nightly.outputs.force_nightly_status != 'true'
761734
run: rustup component add clippy
762735

763736
- uses: actions-rs/[email protected]
764-
if: steps.force_nightly.outputs.force_nightly_status != 'true'
765737
with:
766738
token: ${{ secrets.GITHUB_TOKEN }}
767739
# keep args in sync with `clippy-all` in .cargo/config.toml

Makefile.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ if not ${env_file}
187187
end
188188
189189
needs_run = exec cargo make --loglevel error check-needs-force-nightly-ci
190-
190+
needs_run = trim ${needs_run.stdout}
191191
if eq ${needs_run} "yes"
192192
echo "Setting up CI environment for forced-nightly Rust build"
193193
appendfile ${env_file} "ICU4X_NIGHTLY_TOOLCHAIN=nightly\n"
@@ -214,14 +214,13 @@ if not ${event_name}
214214
exit 1
215215
end
216216
217-
is_schedule = eq ${event_name} "schedule"
218-
is_pr = eq ${event_name} "pull_request"
219-
is_dispatch = eq ${event_name} "workflow_dispatch"
217+
is_schedule = eq "${event_name}" "schedule"
218+
is_pr = eq "${event_name}" "pull_request"
219+
is_dispatch = eq "${event_name}" "workflow_dispatch"
220220
dispatch_needs_nightly = set false
221221
222222
if is_dispatch
223223
event_path = get_env GITHUB_EVENT_PATH
224-
echo ${event_path}
225224
event_file = readfile ${event_path}
226225
event_json = json_parse ${event_file}
227226
if ${event_json.inputs.nightly}

0 commit comments

Comments
 (0)