Skip to content

Commit 2a04e17

Browse files
authored
Merge pull request #764 from integer32llc/octocrab
Switch to octocrab; Tokio 1.x
2 parents 9a0258e + b8a9325 commit 2a04e17

File tree

8 files changed

+689
-582
lines changed

8 files changed

+689
-582
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ jobs:
167167
uses: actions/checkout@v2
168168
with:
169169
ref: "${{ github.event.pull_request.head.sha }}"
170+
- name: Install Rust
171+
uses: actions-rs/toolchain@v1
172+
with:
173+
profile: minimal
174+
toolchain: stable
175+
override: true
176+
components: rustfmt
170177
- name: Cache Cargo intermediate products
171178
uses: actions/cache@v2
172179
with:
@@ -175,6 +182,11 @@ jobs:
175182
~/.cargo/git
176183
ui/target
177184
key: "${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2"
185+
- name: Format
186+
uses: actions-rs/cargo@v1
187+
with:
188+
command: fmt
189+
args: "--manifest-path ui/Cargo.toml --all -- --check"
178190
- name: Build backend
179191
run: |-
180192
mkdir -p ui/target; docker run --rm -v $PWD/ui:/ui -v ~/.cargo/git:/home/rust/.cargo/git -v ~/.cargo/registry:/home/rust/.cargo/registry --workdir /ui ekidd/rust-musl-builder:stable bash -c '

ci/workflows.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@ workflows:
262262
steps:
263263
- *checkout_pr
264264

265+
- name: "Install Rust"
266+
uses: actions-rs/toolchain@v1
267+
with:
268+
profile: minimal
269+
toolchain: stable
270+
override: true
271+
components: rustfmt
272+
265273
- name: "Cache Cargo intermediate products"
266274
uses: actions/cache@v2
267275
with:
@@ -271,6 +279,12 @@ workflows:
271279
ui/target
272280
key: ${{ runner.os }}-cargo-${{ hashFiles('ui/**/Cargo.lock') }}-2
273281

282+
- name: "Format"
283+
uses: actions-rs/cargo@v1
284+
with:
285+
command: fmt
286+
args: --manifest-path ui/Cargo.toml --all -- --check
287+
274288
- name: "Build backend"
275289
run: >-
276290
mkdir -p ui/target;

0 commit comments

Comments
 (0)