1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-04-25 11:25:24 +02:00

remove the cargo-when dependency.

This commit is contained in:
utam0k 2021-06-19 14:39:59 +09:00
parent 5714fc4a4f
commit 726c06cdcf
3 changed files with 2 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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 .