Skip to content

Commit bb9a92e

Browse files
committed
CI: build wamr-wasi-extensions
fragments are copied from compilation_on_macos.yml. (thus intel copyright notice)
1 parent 317b3f3 commit bb9a92e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright (C) 2019 Intel Corporation. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
4+
name: wamr_wasi_extensions
5+
6+
on:
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
paths:
12+
- ".github/workflows/wamr_wasi_extensions.yml"
13+
- "wamr_wasi_extensios/**"
14+
- "core/iwasm/libraries/wasi-nn/include/**"
15+
- "core/iwasm/libraries/lib-socket/**"
16+
# allow to be triggered manually
17+
workflow_dispatch:
18+
19+
# Cancel any in-flight jobs for the same PR/branch so there's only one active
20+
# at a time
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
build_wamr_wasi_extensions:
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix:
30+
os: [ubuntu-22.04, macos-13, macos-14]
31+
steps:
32+
- name: checkout
33+
uses: actions/checkout@v4
34+
35+
- name: install-wasi-sdk-wabt
36+
uses: ./.github/actions/install-wasi-sdk-wabt
37+
with:
38+
os: ${{ matrix.os }}
39+
40+
- name: Build wamr-wasi-extensions
41+
run: |
42+
mkdir dist
43+
./build-libs.sh $(pwd)/dist/wamr-wasi-extensions
44+
working-directory: wamr-wasi-extensions
45+
46+
- name: Build wamr-wasi-extensions samples
47+
run: |
48+
./build-samples.sh $(pwd)/dist/wamr-wasi-extensions
49+
working-directory: wamr-wasi-extensions
50+
51+
- name: Upload artifacts
52+
if: matrix.os == 'macos-14'
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: wamr-wasi-extensions
56+
path: wamr-wasi-extensions/dist
57+
retention-days: 10

0 commit comments

Comments
 (0)