From fb3bb02c2f5f5e0b025c7c3520372052f9c867eb Mon Sep 17 00:00:00 2001 From: lyyyuna Date: Tue, 22 Jun 2021 17:51:35 +0800 Subject: [PATCH] add wins/macos check --- .github/workflows/{e2e.yml => e2e-linux.yml} | 19 ++++-------- .github/workflows/e2e-wins.yml | 32 ++++++++++++++++++++ 2 files changed, 38 insertions(+), 13 deletions(-) rename .github/workflows/{e2e.yml => e2e-linux.yml} (61%) create mode 100644 .github/workflows/e2e-wins.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e-linux.yml similarity index 61% rename from .github/workflows/e2e.yml rename to .github/workflows/e2e-linux.yml index 80da1bf..2fd0e7f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e-linux.yml @@ -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 \ No newline at end of file + ./goc build -o ./gocc . \ No newline at end of file diff --git a/.github/workflows/e2e-wins.yml b/.github/workflows/e2e-wins.yml new file mode 100644 index 0000000..da3d87e --- /dev/null +++ b/.github/workflows/e2e-wins.yml @@ -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 . \ No newline at end of file