Skip to content

Commit

Permalink
Install wasmedge on test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Nov 21, 2022
1 parent 093a849 commit 964d6e9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- wasmedge_path: '$HOME/.wasmedge'
- os: ubuntu-latest
libclang_path: /usr/lib/llvm-12/lib/libclang.so.1
- os: macos-latest
libclang_path: '$(brew --prefix llvm@14)/lib/libclang.dylib'
- os: windows-latest
wasmedge_path: C:\Program Files\WasmEdge
libclang_path: C:\msys64\ucrt64\bin\libclang.dll
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -19,9 +28,23 @@ jobs:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev
if: matrix.os == 'ubuntu-latest'
- name: Install WasmEdge on Unix
run: |
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash
if: matrix.os != 'windows-latest'
- name: Install WasmEdge on Windows
run: |
Invoke-WebRequest https://github.com/WasmEdge/WasmEdge/releases/download/0.11.2/WasmEdge-0.11.2-windows.msi -OutFile wasmedge.msi
msiexec.exe /i wasmedge.msi /qn
C:\msys64\usr\bin\pacman.exe -S --noconfirm mingw-w64-x86_64-clang
if: matrix.os == 'windows-latest'
- name: Install targets
run: |
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasi
- name: Test
run: make test
env:
LIBCLANG_PATH: ${{ matrix.libclang_path }}
WASMEDGE_INCLUDE_DIR: ${{ matrix.wasmedge_path }}/include
WASMEDGE_LIB_DIR: ${{ matrix.wasmedge_path }}/lib

0 comments on commit 964d6e9

Please sign in to comment.