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:
parent
5714fc4a4f
commit
726c06cdcf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
5
build.sh
5
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 .
|
||||
|
|
Loading…
Reference in New Issue