Skip to content

Keep fix the CMake compatibility issue #1

Keep fix the CMake compatibility issue

Keep fix the CMake compatibility issue #1

# 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 }}"

Check failure on line 26 in .github/workflows/install_wasi_sdk_wabt.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/install_wasi_sdk_wabt.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- 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