Skip to content

exclude unsupported combinations #3

exclude unsupported combinations

exclude unsupported combinations #3

Workflow file for this run

name: Build and test
on:
- push
- pull_request
jobs:
linux:
name: Build ${{ matrix.os }} ${{ matrix.arch}}
env:
DEBIAN_FRONTEND: noninteractive
strategy:
matrix:
arch:
- i386
- amd64
- arm64
os:

Check failure on line 18 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 18
- darwin
- windows
- linux
exclude:
- os: windows
arch: i386
- os: darwin
arch: i386
runs-on: ubuntu-latest
container:
image: golang:1.21
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up user
run: |
useradd -m -g users testuser
chown -R testuser:users .
- name: Build for ${{ matrix.arch }} ${{ matrix.os }}
run: |
su -c "GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -v -o binary-${{ matrix.os }}-${{ matrix.arch }}" testuser