mirror of
https://gitee.com/wa-lang/wa.git
synced 2025-12-06 09:18:53 +08:00
90 lines
1.9 KiB
YAML
90 lines
1.9 KiB
YAML
# 版权 @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
|