From 726c06cdcf945823213f83808466e282c7f1d8f9 Mon Sep 17 00:00:00 2001 From: utam0k Date: Sat, 19 Jun 2021 14:39:59 +0900 Subject: [PATCH] remove the cargo-when dependency. --- .github/workflows/main.yml | 2 -- README.md | 4 ---- build.sh | 5 ++--- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e4c4a9b..1675687d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,6 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features - - run: cargo install cargo-when - name: Build run: ./build.sh - name: Run tests @@ -48,7 +47,6 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - run: cargo install cargo-when - name: Build run: ./build.sh - uses: actions/setup-go@v2 diff --git a/README.md b/README.md index 374219f7..09dd2c3d 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,6 @@ For other platforms, please use the devcontainer that we prepared. ## Building -```sh -$ cargo install cargo-when # installs prerequisite for building youki -``` - ```sh $ git clone git@github.com:containers/youki.git $ cd youki diff --git a/build.sh b/build.sh index d8de37c3..1beaa739 100755 --- a/build.sh +++ b/build.sh @@ -8,8 +8,7 @@ VERSION=debug if [[ "$1" == "--release" ]]; then VERSION=release fi -cargo when --channel=stable build --verbose $TGT $1 && \ -cargo when --channel=beta build --verbose $TGT $1 && \ -cargo when --channel=nightly build --verbose --features nightly $TGT $1 && \ + +cargo build --verbose $TGT $1 rm -f youki cp target/$TARGET/$VERSION/youki .