Skip to content

Commit

Permalink
fix: Specify the exact version of Rust 1.56.0
Browse files Browse the repository at this point in the history
- for both github CI and install_deb.sh use Rust 1.56.0
  • Loading branch information
emil916 committed Aug 27, 2024
1 parent f17b66e commit 06ffd7b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Rust 1.56.0
run: |
rustup default 1.56.0
rustup component add rustfmt
rustup update
cargo --version
- name: Install Clang Format
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
Expand All @@ -31,7 +37,7 @@ jobs:
- name: Run Clang Format check
run: ./format.sh -d
- name: Run Cargo Format check
run: cargo fmt --check
run: cargo fmt -- --check

test:
runs-on: ubuntu-20.04
Expand All @@ -43,6 +49,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install Rust 1.56.0
run: |
rustup default 1.56.0
rustup update
cargo --version
- name: Install LLVM
run: |
sudo apt install binaryen --yes
Expand Down Expand Up @@ -76,8 +88,9 @@ jobs:
run: |
make -C ./runtime/thirdparty install
- name: Compile
- name: Compile awsm
run: |
cargo --version
cargo build --release
- name: Preliminary tests
Expand Down
16 changes: 11 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion install_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ $sudo apt install binaryen --yes

# Install Rust
if [[ -x "$(command -v rustup)" ]]; then
rustup install 1.56.0
rustup default 1.56.0
rustup update
else
curl https://sh.rustup.rs -sSf | bash -s -- -y
curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.56.0
fi
source "$HOME/.cargo/env"
export PATH="$HOME/.cargo/bin:$PATH"
Expand Down

0 comments on commit 06ffd7b

Please sign in to comment.