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