Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/Benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ jobs:

- uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/CargoPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
fetch-depth: 0
fetch-tags: true

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml

- name: Check crate versions
shell: bash
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/CreateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -41,9 +39,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -109,9 +105,7 @@ jobs:
fetch-depth: 0
fetch-tags: true

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ValidatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ jobs:
systeminfo

# Run this so we can use just targets in this workflow
- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -114,9 +112,7 @@ jobs:
echo "cat /etc/os-release"
cat /etc/os-release

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dep_build_guest_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/dep_fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up nightly rust
uses: dtolnay/rust-toolchain@nightly
run: rustup toolchain install nightly

- name: Build rust binaries
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dep_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "nightly"
- uses: hyperlight-dev/ci-setup-workflow@use-rust-toolchain-toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up nightly rust
run: rustup toolchain install nightly --profile minimal --allow-downgrade --component rustfmt # used by rust-fmt

- name: fmt
run: just fmt-check

Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,7 @@ You can run Hyperlight on:
After having an environment with a hypervisor setup, running the example has the following pre-requisites:

1. On Linux or WSL, you'll most likely need build essential. For Ubuntu, run `sudo apt install build-essential`. For Azure Linux, run `sudo dnf install build-essential`.
2. [Rust](https://www.rust-lang.org/tools/install). Install toolchain v1.78.0 or later.

Also, install the `x86_64-pc-windows-msvc` and `x86_64-unknown-none` targets, these are needed to build the test guest binaries. (Note: install both targets on either Linux or Windows: Hyperlight can load ELF or PE files on either OS, and the tests/examples are built for both):

```sh
rustup target add x86_64-unknown-none
rustup target add x86_64-pc-windows-msvc
```

2. [Rust](https://www.rust-lang.org/tools/install). If you are using rustup you can move on to the next step, otherwise make sure to install the toolchain as specified in `rust-toolchain.toml`.
3. [just](https://github.com/casey/just). `cargo install just` .
4. [clang and LLVM](https://clang.llvm.org/get_started.html).
- On Ubuntu, run:
Expand Down
2 changes: 0 additions & 2 deletions hack/rust-dependabot-patch.Dockerfile

This file was deleted.

4 changes: 3 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[toolchain]
channel = "1.81.0"
# if you update this, don't forget to change the pinned version
# of nightly we use in the fuzzing workflow.
# of nightly we use in the fuzzing workflow.

targets = [ "x86_64-unknown-none", "x86_64-pc-windows-msvc" ]
Loading