Skip to content

Commit

Permalink
ci: fix toolchain
Browse files Browse the repository at this point in the history
```
Run actions-rs/toolchain@v1
/runner/_work/_temp/5a8c1328-61cf-4c6e-8a44-0a2477ad5648 --default-toolchain none -y
info: downloading installer
info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: skipping toolchain installation
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).
To configure your current shell, run:
source "$HOME/.cargo/env"
/root/.cargo/bin/rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /root/.rustup
installed toolchains
--------------------
error: no default toolchain configured
Error: The process '/root/.cargo/bin/rustup' failed with exit code 1
```

Signed-off-by: Harald Hoyer <harald@profian.com>
  • Loading branch information
haraldh committed Jul 15, 2022
1 parent 4d368d9 commit 6975a03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,19 @@ jobs:
steps:
- run: sudo apt -o Acquire::Retries=3 update
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools lcov
- name: Cleanup working directory
run: rm -fr * $HOME/.cargo $HOME/.rustup
- uses: actions/checkout@v2
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
- uses: actions-rs/toolchain@v1
with:
target: x86_64-unknown-linux-gnu
toolchain: nightly-2022-06-28
profile: minimal
- name: Setup Rust toolchain
run: |
rustup override unset
rustup show
rustup component add llvm-tools-preview
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
ENARX_BACKEND: ${{ matrix.backend.name }}
steps:
- run: sudo apt -o Acquire::Retries=3 update
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools
- run: sudo apt -o Acquire::Retries=3 install -y musl-tools curl
- name: Cleanup working directory
run: rm -fr * $HOME/.cargo $HOME/.rustup
- uses: actions/checkout@v2
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
- uses: actions-rs/toolchain@v1
with:
target: x86_64-unknown-linux-musl
target: x86_64-unknown-linux-gnu
toolchain: nightly-2022-06-28
profile: minimal
- name: Setup Rust toolchain
Expand Down

0 comments on commit 6975a03

Please sign in to comment.