Merge branch 'master' of github.com:wa-lang/wa #1175
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
# 版权 @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 -target=wasi examples/prime | |
- run: cd waroot && wa run -target=wasi hello.wa | |
- run: cd waroot && wa run -target=unknown 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 -target=wasi examples/prime | |
- run: cd waroot && wa run -target=wasi hello.wa | |
- run: cd waroot && wa run -target=unknown 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 -target=wasi examples/prime | |
- run: cd waroot && wa run -target=wasi hello.wa | |
- run: cd waroot && wa run -target=unknown hello.wa |