-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.16 KB
/
go.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
name: Go
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get go toolchains
run: |
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/lint/golint
sudo cp $GOPATH/bin/goimports /usr/bin/
sudo cp $GOPATH/bin/golint /usr/bin/
env:
GOPATH: /home/runner/work/go-json-ice/go
- name: Get tinygo runtime
run: |
wget -P /tmp/ https://github.com/tinygo-org/tinygo/releases/download/v0.13.1/tinygo_0.13.1_amd64.deb
sudo dpkg -i /tmp/tinygo_0.13.1_amd64.deb
- name: Do test
run: make check
env:
GOPATH: /home/runner/work/go-json-ice/go
- name: Compile tinygo wasm; to check success or not
run: |
mkdir -p /home/runner/go/src/github.com/moznion/go-json-ice
cp -R . /home/runner/go/src/github.com/moznion/go-json-ice/
/usr/local/tinygo/bin/tinygo build -o main.wasm -target wasm ./tests/tinygo/main.go