1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-04 22:56:15 +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: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features args: --all-features
- run: cargo install cargo-when
- name: Build - name: Build
run: ./build.sh run: ./build.sh
- name: Run tests - name: Run tests
@ -48,7 +47,6 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
- run: cargo install cargo-when
- name: Build - name: Build
run: ./build.sh run: ./build.sh
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2

View File

@ -42,10 +42,6 @@ For other platforms, please use the devcontainer that we prepared.
## Building ## Building
```sh
$ cargo install cargo-when # installs prerequisite for building youki
```
```sh ```sh
$ git clone git@github.com:containers/youki.git $ git clone git@github.com:containers/youki.git
$ cd youki $ cd youki

View File

@ -8,8 +8,7 @@ VERSION=debug
if [[ "$1" == "--release" ]]; then if [[ "$1" == "--release" ]]; then
VERSION=release VERSION=release
fi fi
cargo when --channel=stable build --verbose $TGT $1 && \
cargo when --channel=beta build --verbose $TGT $1 && \ cargo build --verbose $TGT $1
cargo when --channel=nightly build --verbose --features nightly $TGT $1 && \
rm -f youki rm -f youki
cp target/$TARGET/$VERSION/youki . cp target/$TARGET/$VERSION/youki .