-
Notifications
You must be signed in to change notification settings - Fork 225
Refactor Makefile.toml and use it as the source of truth for (almost) all CI #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
0d1df83
933e0be
9725135
cdf1355
66fc6ba
55f9cbc
eb3a079
5d9a32d
4a39bf6
40a9242
a5fd5f9
26f5c8e
17dff32
efd51c6
696f573
8ffcd49
32e3a43
01af955
118ccb3
0a5e08e
0963706
5d28850
612f643
21eaa16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,27 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Load the default Rust toolchain via the rust-toolchain file. | ||
run: rustup show | ||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
- name: Check | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -51,11 +67,27 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Load the default Rust toolchain via the rust-toolchain file. | ||
run: rustup show | ||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
- name: Build | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -81,11 +113,27 @@ jobs: | |
with: | ||
command: install | ||
args: cargo-all-features --version "^1.4" | ||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
- name: Build All Feature Permutations | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -107,11 +155,27 @@ jobs: | |
run: | | ||
sudo apt-get install wabt binaryen | ||
cargo install twiggy | ||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
- name: Build | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -139,12 +203,28 @@ jobs: | |
- name: Install rustfmt | ||
run: rustup component add rustfmt | ||
|
||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
|
||
- name: Check Format | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -161,16 +241,41 @@ jobs: | |
- name: Load the default Rust toolchain via the rust-toolchain file. | ||
run: rustup show | ||
|
||
- name: Install rustfmt | ||
run: rustup component add rustfmt | ||
|
||
- name: Get cargo-make version | ||
id: cargo-make-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-make | ||
uses: actions/cache@v2 | ||
id: cargo-make-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-make | ||
~/.cargo/bin/cargo-make.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-make-version.outputs.hash }} | ||
- name: Install cargo-make | ||
if: steps.cargo-make-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-make | ||
version: latest | ||
|
||
- name: Get cargo-readme version | ||
id: cargo-readme-version | ||
run: | | ||
echo "::set-output name=hash::$(cargo search cargo-readme | grep '^cargo-readme =' | md5sum)" | ||
shell: bash | ||
- name: Attempt to load cached cargo-readme | ||
uses: actions/cache@v2 | ||
id: cargo-readme-cache | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-readme | ||
~/.cargo/bin/cargo-readme.exe | ||
key: ${{ runner.os }}-${{ steps.cargo-readme-version.outputs.hash }} | ||
- name: Install cargo-readme | ||
if: steps.cargo-readme-cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-readme | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
# This is a cargo-make file included in the toplevel Makefile.toml | ||
|
||
[tasks.tidy] | ||
[tasks.tidy-minus-fmt] | ||
|
||
description = "Run miscellaneous tidy checks" | ||
category = "ICU4X Development" | ||
dependencies = [ | ||
|
Uh oh!
There was an error while loading. Please reload this page.