2021-07-22 03:26:55 +00:00
|
|
|
name: e2e test
|
2021-06-22 09:43:46 +00:00
|
|
|
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
|
2021-06-22 09:51:35 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-06-22 09:43:46 +00:00
|
|
|
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: |
|
2021-06-22 09:51:35 +00:00
|
|
|
./goc build -o ./gocc .
|