-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.24 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
branches: [ main ]
pull_request:
branches: [ main, master ]
name: .NET CI
jobs:
test:
name: Test .NET PDK
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust:
- stable
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install WASI SDK
run: |
mkdir ~/wasi-sdk
cd ~/wasi-sdk/
export WASI_VERSION=20
export WASI_VERSION_FULL=${WASI_VERSION}.0
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
tar xvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
- name: Setup Go environment
uses: actions/[email protected]
- name: Install Extism CLI
run: |
go install github.com/extism/cli/extism@latest
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.100-rc.1.23463.5
- name: Install WASI workload
run: |
dotnet workload install wasi-experimental
- name: Test .NET PDK
run: |
export WASI_SDK_PATH=~/wasi-sdk/wasi-sdk-20.0
make test