[cli] Add ability to consume arm64 plugins from pulumi cli (#6492)

Related: #4868

Also adds the arm64 build and deployment steps via goreleaser
This commit is contained in:
Paul Stack 2021-03-10 16:28:55 +00:00 committed by GitHub
parent c8eac38286
commit dc7eb5e2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 5 deletions

View file

@ -109,7 +109,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: -f .goreleaser.prerelease.yml --rm-dist --skip-validate
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate
lint:
container: golangci/golangci-lint:latest
name: Lint ${{ matrix.directory }}

View file

@ -107,7 +107,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: -f .goreleaser.prerelease.yml --rm-dist
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist
lint:
container: golangci/golangci-lint:latest
name: Lint ${{ matrix.directory }}

View file

@ -204,7 +204,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: -f .goreleaser.yml --rm-dist --release-notes=CHANGELOG_PENDING.md
args: -p 3 -f .goreleaser.yml --rm-dist --release-notes=CHANGELOG_PENDING.md
lint:
container: golangci/golangci-lint:latest
name: Lint ${{ matrix.directory }}

View file

@ -24,6 +24,7 @@ builds:
dir: pkg
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -35,6 +36,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -46,6 +48,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -57,6 +60,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -68,6 +72,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin

View file

@ -19,6 +19,7 @@ builds:
dir: pkg
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -30,6 +31,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -41,6 +43,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -52,6 +55,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin
@ -63,6 +67,7 @@ builds:
dir: sdk
goarch:
- amd64
- arm64
goos:
- linux
- darwin

View file

@ -9,9 +9,15 @@
- [sdk/go] Return zero values instead of panicing in `Index` and `Elem` methods.
[#6338](https://github.com/pulumi/pulumi/pull/6338)
- Updating Pulumi to use Go 1.16
- [cli] Add ability to download arm64 provider plugins
[#6492](https://github.com/pulumi/pulumi/pull/6492)
- [build] Updating Pulumi to use Go 1.16
[#6470](https://github.com/pulumi/pulumi/pull/6470)
- [build] Adding a Pulumi arm64 binary for use on new macOS hardware
[#6492](https://github.com/pulumi/pulumi/pull/6492)
### Bug Fixes
- [sdk/python] Fix mocks issue when passing a resource more than once.

View file

@ -219,7 +219,7 @@ func (info PluginInfo) Download() (io.ReadCloser, int64, error) {
}
var arch string
switch runtime.GOARCH {
case "amd64":
case "amd64", "arm64":
arch = runtime.GOARCH
default:
return nil, -1, errors.Errorf("unsupported plugin architecture: %s", runtime.GOARCH)