Skip to content

Merge pull request #53 from hashicorp/smre-177-node20-update #429

Merge pull request #53 from hashicorp/smre-177-node20-update

Merge pull request #53 from hashicorp/smre-177-node20-update #429

# GENERATED FILE, DO NOT MODIFY; INSTEAD EDIT .github/workflows/example-matrix.yml AND RUN 'make examples'
name: Matrix Example (current branch)
on: push
jobs:
example:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- { runner: macos-latest, os: darwin, arch: amd64, tags: netcgo }
- { runner: macos-latest, os: darwin, arch: arm64, tags: netcgo }
- { runner: ubuntu-latest, os: linux, arch: amd64, env: CGO_ENABLED=0 }
- { runner: ubuntu-latest, os: linux, arch: arm64, env: CGO_ENABLED=0 }
- { runner: ubuntu-latest, os: windows, arch: amd64, env: CGO_ENABLED=0 }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Build
uses: ./
with:
product_name: example-app
product_version: 1.2.3
go_version: 1.18
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
instructions: |-
cd ./testdata/example-app && \
${{ matrix.env }} \
go build \
-o "$BIN_PATH" \
-trimpath \
-buildvcs=false \
-tags="${{ matrix.tags }}" \
-ldflags "
-X 'current branch.Version=$PRODUCT_VERSION'
-X 'current branch.Revision=$PRODUCT_REVISION'
-X 'current branch.RevisionTime=$PRODUCT_REVISION_TIME'
"