From 34f014b47737fe2fb4c250d3e1dc7f9e138d4fea Mon Sep 17 00:00:00 2001 From: "Rodrigo C. Moraes" Date: Tue, 4 Jun 2024 14:21:40 -0300 Subject: [PATCH] ci: get back steps --- .github/workflows/build_plugin_binaries.yml | 220 ++++++++++---------- .github/workflows/go-test-darwin.yml | 2 +- .github/workflows/go-test-windows.yml | 2 +- 3 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.github/workflows/build_plugin_binaries.yml b/.github/workflows/build_plugin_binaries.yml index 6dea705f..36ea7f0e 100644 --- a/.github/workflows/build_plugin_binaries.yml +++ b/.github/workflows/build_plugin_binaries.yml @@ -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: @@ -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 diff --git a/.github/workflows/go-test-darwin.yml b/.github/workflows/go-test-darwin.yml index d4135492..ee4bd092 100644 --- a/.github/workflows/go-test-darwin.yml +++ b/.github/workflows/go-test-darwin.yml @@ -12,7 +12,7 @@ on: push: branches: - 'main' - # pull_request: + pull_request: permissions: contents: read diff --git a/.github/workflows/go-test-windows.yml b/.github/workflows/go-test-windows.yml index 7c86949f..6b6482d2 100644 --- a/.github/workflows/go-test-windows.yml +++ b/.github/workflows/go-test-windows.yml @@ -12,7 +12,7 @@ on: push: branches: - 'main' - # pull_request: + pull_request: permissions: contents: read