Skip to content

build: go v1.21.1 #1078

build: go v1.21.1

build: go v1.21.1 #1078

Workflow file for this run

# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: build-on-macos
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main
jobs:
build-and-run:
runs-on: macos-13
defaults:
run:
shell: bash
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
env:
NIX_USER_COUNT: 4
- name: Build
run: |
devbox run -- \
make GORELEASER_FLAGS='--config=<(env GOOS=$$(go env GOOS) GOARCH=$$(go env GOARCH) gojq --yaml-input --yaml-output \'del(.builds[0].goarch) | del(.builds[0].goos) | .builds[0].targets|=([env.GOOS+"_"+env.GOARCH] | unique | map(. | sub("_amd64";"_amd64_v1")))\' .goreleaser.yml) --skip=validate,publish' release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run binary
run: |
./dist/mindthegap_darwin_amd64_v1/mindthegap