Skip to content

Commit 726c06c

Browse files
committed
remove the cargo-when dependency.
1 parent 5714fc4 commit 726c06c

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.github/workflows/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
args: --all-features
28-
- run: cargo install cargo-when
2928
- name: Build
3029
run: ./build.sh
3130
- name: Run tests
@@ -48,7 +47,6 @@ jobs:
4847
- uses: actions-rs/toolchain@v1
4948
with:
5049
toolchain: stable
51-
- run: cargo install cargo-when
5250
- name: Build
5351
run: ./build.sh
5452
- uses: actions/setup-go@v2

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ For other platforms, please use the devcontainer that we prepared.
4242

4343
## Building
4444

45-
```sh
46-
$ cargo install cargo-when # installs prerequisite for building youki
47-
```
48-
4945
```sh
5046
$ git clone [email protected]:containers/youki.git
5147
$ cd youki

build.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ VERSION=debug
88
if [[ "$1" == "--release" ]]; then
99
VERSION=release
1010
fi
11-
cargo when --channel=stable build --verbose $TGT $1 && \
12-
cargo when --channel=beta build --verbose $TGT $1 && \
13-
cargo when --channel=nightly build --verbose --features nightly $TGT $1 && \
11+
12+
cargo build --verbose $TGT $1
1413
rm -f youki
1514
cp target/$TARGET/$VERSION/youki .

0 commit comments

Comments
 (0)