From 90b4996e55605f209a472a8129d647146baacc8b Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 18 Jun 2021 07:02:52 +0200 Subject: [PATCH] chore: validate all supported goarchs --- .github/workflows/artifacts.yml | 37 +++++++++++++++++++++++++++++++++ .github/workflows/code.yml | 4 ---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/artifacts.yml diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 000000000000..113456d4eac9 --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,37 @@ +on: + pull_request: + paths-ignore: + - 'README.md' + - 'CONTRIBUTING.md' + - 'COPYING' + - 'docs/**' + - '.github/*.md' + - '.github/FUNDING.yml' + +name: Build Code +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + goarch: [amd64] + include: + - os: ubuntu-latest + goarch: arm + - os: windows-latest + goarch: 386 + runs-on: ${{ matrix.os }} + defaults: + run: + working-directory: ${{ github.workspace }}/src + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build + env: + GOARCH: ${{ matrix.goarch }} diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index deb77ca847a6..253bdb4dedd8 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -14,10 +14,6 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - include: - - os: ubuntu-latest - - os: macos-latest - - os: windows-latest runs-on: ${{ matrix.os }} defaults: run: