From 0c5ab30664f7e47bfc82e7c78c87ee5720e29658 Mon Sep 17 00:00:00 2001 From: Afr Schoe <58883403+q9f@users.noreply.github.com> Date: Fri, 1 Apr 2022 16:55:18 +0200 Subject: [PATCH] ci: add wasm target to release script (#1524) --- .github/workflows/release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f36b2eab492..847693637bcf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,19 +17,25 @@ jobs: - os: macos-latest file: forest-${{ github.ref_name }}-macos-amd64.zip steps: + - name: Apt Dependencies + if: startsWith(matrix.os, 'Ubuntu') + run: | + sudo apt-get update + sudo apt-get install -y build-essential clang ocl-icd-opencl-dev + - name: Homebrew Utils + if: startsWith(matrix.os, 'macOS') + run: | + brew install --verbose coreutils - name: Checkout Sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable + target: wasm32-unknown-unknown override: true - name: Rust Cache uses: Swatinem/rust-cache@v1.3.0 - - name: Homebrew Utils - run: | - brew install --verbose coreutils - if: startsWith(matrix.os, 'macOS') - name: Cargo Build uses: actions-rs/cargo@v1 with: