-
Notifications
You must be signed in to change notification settings - Fork 55
89 lines (67 loc) · 1.82 KB
/
wa.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# 版权 @2022 凹语言 作者。保留所有权利。
name: Wa
on:
pull_request:
push:
branches:
- main
- master
- "releases/*"
jobs:
build-and-test-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- run: go version
- run: go env
- run: make ci-test-all
- run: go test -v -coverprofile=profile.cov ./...
- run: go install
- run: wa -h
- run: cd waroot && wa run examples/prime
- run: cd waroot && wa run hello.wa
- run: cd waroot && wa run -target=chrome hello.wa
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
build-and-test-windows:
runs-on: windows-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- run: go version
- run: go env
- run: make ci-test-all
- run: go test -v ./...
- run: go install
- run: wa -h
- run: cd waroot && wa run examples/prime
- run: cd waroot && wa run hello.wa
- run: cd waroot && wa run -target=chrome hello.wa
build-and-test-macos:
runs-on: macos-12
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- run: go version
- run: go env
- run: make ci-test-all
- run: go test -v ./...
- run: go install
- run: wa -h
- run: cd waroot && wa run examples/prime
- run: cd waroot && wa run hello.wa
- run: cd waroot && wa run -target=chrome hello.wa