-
Notifications
You must be signed in to change notification settings - Fork 61
52 lines (51 loc) · 1.35 KB
/
main.yml
File metadata and controls
52 lines (51 loc) · 1.35 KB
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
51
52
name: CI
on:
push:
branches: [master]
tags-ignore: [dev]
pull_request:
branches: [master]
schedule:
- cron: '0 0 * * *' # run at 00:00 UTC
jobs:
build:
name: Test .NET embedding of Wasmtime
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [linux-debug, linux-release, macos-debug, macos-release, windows-debug, windows-release]
include:
- build: linux-debug
os: ubuntu-latest
config: debug
- build: linux-release
os: ubuntu-latest
config: release
- build: macos-debug
os: macos-latest
config: debug
- build: macos-release
os: macos-latest
config: release
- build: windows-debug
os: windows-latest
config: debug
- build: windows-release
os: windows-latest
config: release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.201'
- name: Restore packages
run: dotnet restore
- name: Build
run: dotnet build -c ${{ matrix.config }} --no-restore
- name: Test
run: dotnet test -c ${{ matrix.config }}
- name: Create package
run: |
cd src
dotnet pack -c ${{ matrix.config }}