add wins/macos check

This commit is contained in:
lyyyuna 2021-06-22 17:51:35 +08:00
parent e58a1effd1
commit fb3bb02c2f
2 changed files with 38 additions and 13 deletions

View File

@ -1,4 +1,4 @@
name: e2e test
name: linux/macos e2e test
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
@ -13,7 +13,10 @@ on:
jobs:
job_1:
name: Build goc binary
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
@ -26,14 +29,4 @@ jobs:
go build .
- name: Use goc to build self
run: |
./goc build -o ./gocc .
- name: Upload goc binary
uses: actions/upload-artifact@v2
with:
name: goc
path: goc
- name: Upload covered self goc binary
uses: actions/upload-artifact@v2
with:
name: gocc
path: gocc
./goc build -o ./gocc .

32
.github/workflows/e2e-wins.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: windows e2e test
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
paths-ignore:
- '**.md'
- '**.png'
pull_request:
paths-ignore:
- '**.md'
- '**.png'
jobs:
job_1:
name: Build goc binary
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Go build
run: |
go build .
- name: Use goc to build self
run: |
.\goc.exe build -o gocc .