From d19c23ae126364f0652663b712de687713f60adf Mon Sep 17 00:00:00 2001 From: Victor Palade Date: Tue, 30 Jul 2024 00:06:37 +0200 Subject: [PATCH 1/2] github actions: replace deprecated actions-rs. Signed-off-by: Victor Palade --- .github/workflows/rust.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4de07cd..0d896a1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,20 +13,24 @@ jobs: build: runs-on: ubuntu-latest - + container: + image: ubuntu:22.04 steps: - - uses: actions/checkout@v3 + - name: Install packages + run: | + apt-get update && apt-get install -y curl \ + wget unzip pkg-config libssl-dev cmake build-essential + - uses: actions/checkout@v4 - name: Install latest nightly - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: nightly - override: true components: rustfmt, clippy target: wasm32-wasip1 - name: Install cargo-component run: cargo install cargo-component - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y build-essential + run: apt-get update && apt-get install -y build-essential - name: Install wit-bindgen run: cargo install wit-bindgen-cli - name: Check WIT API @@ -34,4 +38,4 @@ jobs: - name: Run clippy run: cargo clippy - name: Build plugins - run: cargo component build + run: cargo component build -r From 838b80d23523c6c0ce6cd44f5b4fa03374528029 Mon Sep 17 00:00:00 2001 From: Victor Palade Date: Wed, 31 Jul 2024 00:03:04 +0200 Subject: [PATCH 2/2] github actions: remove unused install. Signed-off-by: Victor Palade --- .github/workflows/rust.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0d896a1..5669fe1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,7 +11,6 @@ env: jobs: build: - runs-on: ubuntu-latest container: image: ubuntu:22.04 @@ -29,8 +28,6 @@ jobs: target: wasm32-wasip1 - name: Install cargo-component run: cargo install cargo-component - - name: Install dependencies - run: apt-get update && apt-get install -y build-essential - name: Install wit-bindgen run: cargo install wit-bindgen-cli - name: Check WIT API