add wins/macos check
This commit is contained in:
parent
e58a1effd1
commit
fb3bb02c2f
@ -1,4 +1,4 @@
|
|||||||
name: e2e test
|
name: linux/macos e2e test
|
||||||
on:
|
on:
|
||||||
# Trigger the workflow on push or pull request,
|
# Trigger the workflow on push or pull request,
|
||||||
# but only for the master branch
|
# but only for the master branch
|
||||||
@ -13,7 +13,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
job_1:
|
job_1:
|
||||||
name: Build goc binary
|
name: Build goc binary
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
@ -27,13 +30,3 @@ jobs:
|
|||||||
- name: Use goc to build self
|
- name: Use goc to build self
|
||||||
run: |
|
run: |
|
||||||
./goc build -o ./gocc .
|
./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
|
|
32
.github/workflows/e2e-wins.yml
vendored
Normal file
32
.github/workflows/e2e-wins.yml
vendored
Normal 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 .
|
Loading…
Reference in New Issue
Block a user