Skip to content

Commit 096d9d2

Browse files
committed
ci: add first ci
1 parent 83dca7b commit 096d9d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
# figure out native target triple while we're at it
4545
- name: install rust-toolchain
4646
run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
47+
- name: xtask cargo fetch --locked
48+
run: cd xtask && cargo fetch --locked --target $TARGET
4749
- name: xtask build
4850
run: cd xtask && cargo build
4951
- name: xtask generate
@@ -110,13 +112,13 @@ jobs:
110112
- name: install rust-toolchain
111113
run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
112114
- name: xtask cargo fetch --locked
113-
run: cd xtask && cargo fetch --locked --target $TARGET
115+
run: cd xtask && cargo fetch --locked
114116
- name: xtask build
115117
run: cd xtask && cargo build
116118
- name: xtask generate
117119
run: cargo xtask generate
118120
- name: cargo fetch --locked
119-
run: cargo xtask generate cargo fetch --locked --target $TARGET
121+
run: cargo xtask generate cargo fetch --locked
120122
- name: fmt
121123
run: cargo xtask generate cargo fmt --all -- --check
122124
- name: clippy

0 commit comments

Comments
 (0)