Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
let just build for linux amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoCMoraes committed Jun 3, 2024
1 parent fe34d3b commit 447b122
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 152 deletions.
220 changes: 110 additions & 110 deletions .github/workflows/build_plugin_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@ on:
branches:
- main
jobs:
build_darwin:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: darwin
GOARCH: amd64
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: darwin
GOARCH: arm64
build_freebsd:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: freebsd
GOARCH: 386
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: freebsd
GOARCH: amd64
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: freebsd
GOARCH: arm
# build_darwin:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: darwin
# GOARCH: amd64
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: darwin
# GOARCH: arm64
# build_freebsd:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: freebsd
# GOARCH: 386
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: freebsd
# GOARCH: amd64
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: freebsd
# GOARCH: arm
build_linux:
defaults:
run:
Expand All @@ -72,75 +72,75 @@ jobs:
with:
GOOS: linux
GOARCH: arm64
build_netbsd:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: netbsd
GOARCH: 386
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: netbsd
GOARCH: amd64
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: netbsd
GOARCH: arm
build_openbsd:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: openbsd
GOARCH: 386
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: openbsd
GOARCH: amd64
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: openbsd
GOARCH: arm
build_solaris:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: solaris
GOARCH: amd64
build_windows:
defaults:
run:
working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/cimg/go:1.21
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: windows
GOARCH: 386
- uses: "./.github/actions/build-and-persist-plugin-binary"
with:
GOOS: windows
GOARCH: amd64
# build_netbsd:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: netbsd
# GOARCH: 386
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: netbsd
# GOARCH: amd64
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: netbsd
# GOARCH: arm
# build_openbsd:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: openbsd
# GOARCH: 386
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: openbsd
# GOARCH: amd64
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: openbsd
# GOARCH: arm
# build_solaris:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: solaris
# GOARCH: amd64
# build_windows:
# defaults:
# run:
# working-directory: ~/go/src/github.com/hashicorp/packer-plugin-amazon
# runs-on: ubuntu-latest
# container:
# image: docker.mirror.hashicorp.services/cimg/go:1.21
# steps:
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: windows
# GOARCH: 386
# - uses: "./.github/actions/build-and-persist-plugin-binary"
# with:
# GOOS: windows
# GOARCH: amd64
2 changes: 1 addition & 1 deletion .github/workflows/go-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
push:
branches:
- 'main'
pull_request:
# pull_request:

permissions:
contents: read
Expand Down
82 changes: 41 additions & 41 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,51 +39,51 @@ builds:
- linux
goarch:
- amd64
- '386'
- arm
- arm64
# - '386'
# - arm
# - arm64
ignore:
- goos: linux
goarch: amd64
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
-
id: darwin-builds
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
goos:
- darwin
goarch:
- amd64
- arm64
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
-
id: other-builds
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
goos:
- netbsd
- openbsd
- freebsd
- windows
- solaris
goarch:
- amd64
- '386'
- arm
ignore:
- goos: windows
goarch: arm
- goos: solaris
goarch: arm
- goos: solaris
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
# -
# id: darwin-builds
# mod_timestamp: '{{ .CommitTimestamp }}'
# flags:
# - -trimpath #removes all file system paths from the compiled executable
# ldflags:
# - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
# goos:
# - darwin
# goarch:
# - amd64
# - arm64
# binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
# -
# id: other-builds
# mod_timestamp: '{{ .CommitTimestamp }}'
# flags:
# - -trimpath #removes all file system paths from the compiled executable
# ldflags:
# - '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
# goos:
# - netbsd
# - openbsd
# - freebsd
# - windows
# - solaris
# goarch:
# - amd64
# - '386'
# - arm
# ignore:
# - goos: windows
# goarch: arm
# - goos: solaris
# goarch: arm
# - goos: solaris
# goarch: '386'
# binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
archives:
- format: zip
files:
Expand Down

0 comments on commit 447b122

Please sign in to comment.