Skip to content

Commit

Permalink
Use the same rustc version as in gluwa/creditcoin repository
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Nov 6, 2024
1 parent dc7b651 commit fd2229d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/gluwa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,16 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Set-Up
- name: Configure rustc version
run: |
sudo apt-get update
sudo apt install -y cmake pkg-config libssl-dev clang libclang-dev llvm protobuf-compiler
# use the version defined in gluwa/creditcoin
RUSTC_VERSION=$(curl --silent https://raw.githubusercontent.com/gluwa/creditcoin/dev/rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"')
echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV"
- name: Install Rust toolchain
uses: gluwa/toolchain@dev
with:
toolchain: nightly-2023-04-16
toolchain: ${{ env.RUSTC_VERSION }}
target: wasm32-unknown-unknown
profile: minimal
override: true
Expand All @@ -107,22 +108,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set-Up
- name: Configure rustc version
run: |
sudo apt-get update
sudo apt install -y cmake pkg-config libssl-dev clang libclang-dev llvm protobuf-compiler
# use the version defined in gluwa/creditcoin
RUSTC_VERSION=$(curl --silent https://raw.githubusercontent.com/gluwa/creditcoin/dev/rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"')
echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV"
- name: Install Rust toolchain
uses: gluwa/toolchain@dev
with:
toolchain: nightly-2023-04-16
toolchain: ${{ env.RUSTC_VERSION }}
target: wasm32-unknown-unknown
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2

- name: Run tests
uses: actions-rs/cargo@v1
uses: gluwa/cargo@dev
with:
command: test
args: --features runtime-benchmarks
Expand Down

0 comments on commit fd2229d

Please sign in to comment.