Skip to content

feat: sync upstream changes #14

feat: sync upstream changes

feat: sync upstream changes #14

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches-ignore: [pre-release]
env:
GOPROXY: https://proxy.golang.org/
jobs:
generate-provider-schemas:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- name: Generate provider schemas
run: |
go generate ./internal/schemas
du -h -s ./internal/schemas/data
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- {goos: linux, goarch: '386'}
- {goos: linux, goarch: amd64}
- {goos: linux, goarch: arm}
- {goos: linux, goarch: arm64}
- {goos: freebsd, goarch: '386'}
- {goos: freebsd, goarch: amd64}
- {goos: freebsd, goarch: arm}
- {goos: openbsd, goarch: '386'}
- {goos: openbsd, goarch: amd64}
- {goos: solaris, goarch: amd64}
- {goos: windows, goarch: '386'}
- {goos: windows, goarch: amd64}
- {goos: windows, goarch: arm64}
- {goos: darwin, goarch: arm64}
- {goos: darwin, goarch: amd64}
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: .go-version
- name: ${{ matrix.goos }} ${{ matrix.goarch }} build
run: |-
go build \
-trimpath \
-buildvcs=false \
-ldflags "-s -w"
delete-provider-schemas:
needs: build
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@24928e75e6e6590170563b8ddae9fac674508aa1 # v5.0.0
with:
name: provider-schema-data