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 1f873a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@ 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 nightly-2022-06-28 -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 show
rustup component add llvm-tools-preview
components: llvm-tools-preview

- name: Install cargo-llvm-cov
run: cargo install --version 0.4.1 cargo-llvm-cov
run: curl -LsSf | tar xzf - && mv cargo-llvm-cov $HOME/.cargo/bin

- name: Run cargo-llvm-cov
run: cargo llvm-cov --coverage-target-only --target x86_64-unknown-linux-gnu --manifest-path ${{ matrix.crate.path }}/Cargo.toml --lcov --output-path lcov.info ${{ matrix.crate.flags }}
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ 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 nightly-2022-06-28 -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
run: >
rustup override unset || :
&& rustup target add wasm32-wasi
&& rustup show

- uses: actions-rs/cargo@v1
with:
command: test
Expand Down

0 comments on commit 1f873a8

Please sign in to comment.