Keep fix the CMake compatibility issue #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| # Get URLs from: | ||
| # - https://github.com/WebAssembly/wasi-sdk/releases | ||
| # - https://github.com/WebAssembly/wabt/releases | ||
| # Install WASI-SDK and WABT at /opt | ||
| # /opt is the assumed location widely used in the project | ||
| name: Install WASI-SDK and WABT | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| os: | ||
| required: true | ||
| type: string | ||
| jobs: | ||
| install: | ||
| runs-on: ${{ inputs.os }} | ||
| steps: | ||
| - name: Check OS | ||
| id: os-check | ||
| run: echo "Operating System: ${{ inputs.os }}" | ||
| - name: Set URLs | ||
| id: set-urls | ||
| run: | | ||
| if [[ "${{ inputs.os }}" == windows-* ]]; then | ||
| echo "wasi_url=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-windows.tar.gz" >> $GITHUB_ENV | ||
| echo "wabt_url=https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-windows.tar.gz" >> $GITHUB_ENV | ||
| elif [[ "${{ inputs.os }}" == ubuntu-* ]]; then | ||
| echo "wasi_url=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz" >> $GITHUB_ENV | ||
| echo "wabt_url=https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-ubuntu-20.04.tar.gz" >> $GITHUB_ENV | ||
| elif [[ "${{ inputs.os }}" == macos-* ]]; then | ||
| echo "wasi_url=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-macos.tar.gz" >> $GITHUB_ENV | ||
| echo "wabt_url=https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-macos-14.tar.gz" >> $GITHUB_ENV | ||
| else | ||
| echo "Unsupported OS" | ||
| exit 1 | ||
| fi | ||
| - name: Install WASI-SDK | ||
| run: | | ||
| sudo wget -O /opt/wasi-sdk.tar.gz ${{ env.wasi_url }} | ||
| sudo tar -xf /opt/wasi-sdk.tar.gz -C /opt | ||
| sudo rm /opt/wasi-sdk.tar.gz | ||
| - name: Install WABT | ||
| run: | | ||
| sudo wget -O /opt/wabt.tar.gz ${{ env.wabt_url }} | ||
| sudo tar -xf /opt/wabt.tar.gz -C /opt | ||
| sudo rm /opt/wabt.tar.gz | ||