[CI] Use macos-13 for testing the macos amd64 #26
This file contains 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
name: test-installer-v2 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/test-installer-v2.yml' | |
- 'utils/install_v2.sh' | |
- 'utils/uninstall.sh' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/test-installer-v2.yml' | |
- 'utils/install_v2.sh' | |
- 'utils/uninstall.sh' | |
jobs: | |
verify-installer-v2: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: CentOS 9 Stream | |
host_runner: ubuntu-latest | |
docker_image: quay.io/centos/centos:stream9 | |
extra_setup_command: yum update -y && yum install -y which | |
- name: Ubuntu 20.04 | |
host_runner: ubuntu-latest | |
docker_image: ubuntu:20.04 | |
extra_setup_command: apt update -y && apt install -y curl | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.host_runner }} | |
container: | |
image: ${{ matrix.docker_image }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
run: | | |
${{ matrix.extra_setup_command }} | |
- name: Run installer-v2 | |
run: | | |
# It will install WasmEdge and the GGML plugin | |
bash utils/install_v2.sh -V | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.so && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Re-install installer-v2 | |
run: | | |
# It should uninstall the previous installation and install WasmEdge and the GGML plugin again | |
bash utils/install_v2.sh -V | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.so && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Run installer-v2 with noavx option | |
if: ${{ matrix.docker_image == 'ubuntu:20.04' }} | |
run: | | |
# It will install WasmEdge and the noavx GGML plugin | |
bash utils/install_v2.sh -V --noavx | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.so && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Run installer-v2 with ggml build number b2963 | |
run: | | |
# It will install WasmEdge and the b2963 GGML plugin | |
bash utils/install_v2.sh -V --ggmlbn=b2963 | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.so && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Uninstall WasmEdge | |
run: | | |
bash utils/uninstall.sh -q -V | |
macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Mac M1 | |
host_runner: macos-14 | |
- name: Mac Intel | |
host_runner: macos-13 | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.host_runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install zsh | |
run: | | |
eval $(/opt/homebrew/bin/brew shellenv) | |
brew install zsh | |
- name: Run installer-v2 | |
run: | | |
# It will install WasmEdge and the GGML plugin | |
bash utils/install_v2.sh -V | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.dylib && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Re-install installer-v2 | |
run: | | |
# It should uninstall the previous installation and install WasmEdge and the GGML plugin again | |
bash utils/install_v2.sh -V | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.dylib && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Run installer-v2 with ggml build number b2963 | |
if: ${{ matrix.host_runner == 'macos-14' }} | |
run: | | |
# It will install WasmEdge and the b2963 GGML plugin | |
bash utils/install_v2.sh -V --ggmlbn=b2963 | |
ls ~/.wasmedge/plugin/ | grep libwasmedgePluginWasiNN.dylib && echo "Pass: WASI_NN-ggml Plugin found" || (echo "Fail: WASI_NN-ggml not found" && exit 1) | |
- name: Uninstall WasmEdge | |
run: | | |
bash utils/uninstall.sh -q -V |