Skip to content

Commit a1341df

Browse files
authored
Update plugin to support ARM64 build (#29)
1 parent 622c1d8 commit a1341df

File tree

2 files changed

+15
-35
lines changed

2 files changed

+15
-35
lines changed

.github/workflows/registry-publish.yml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Go
4343
uses: actions/setup-go@v2
4444
with:
45-
go-version: 1.17
45+
go-version: 1.18
4646

4747
- name: Get latest version tag
4848
run: |-
@@ -105,40 +105,18 @@ jobs:
105105
path: ./dist/steampipe-plugin-${{ env.PLUGIN_NAME }}_darwin_amd64.gz
106106
if-no-files-found: error
107107

108-
# test-amd64:
109-
# name: Integration Test
110-
# runs-on: ${{ matrix.os }}
111-
# needs: build
112-
# strategy:
113-
# matrix:
114-
# os: [ubuntu-latest, macos-latest, windows-latest]
115-
# steps:
116-
117-
# test-darwin-amd64:
118-
# name: Test MacOS (AMD64)
119-
# runs-on: macos-latest
120-
# needs: build
121-
122-
# test-linux-amd64:
123-
# name: Test Linux (AMD64)
124-
# runs-on: ubuntu-latest
125-
# needs: build
126-
127-
# test-windows-amd64:
128-
# name: Test Windows (AMD64)
129-
# runs-on: windows-latest
130-
# needs: build
131-
132-
# There are no runners for amd64 - would need to run our own...
108+
- name: Save MacOS Build Artifact - ARM64
109+
uses: actions/upload-artifact@v2
110+
with:
111+
name: steampipe-${{ env.PLUGIN_NAME }}_darwin_arm64
112+
path: ./dist/steampipe-plugin-${{ env.PLUGIN_NAME }}_darwin_arm64.gz
113+
if-no-files-found: error
133114

134115
publish-deploy:
135116
name: Publish and Deploy
136117
runs-on: ubuntu-latest
137118
needs:
138119
- build
139-
# - test-darwin-amd64
140-
# - test-linux-amd64
141-
# - test-windows-amd64
142120

143121
steps:
144122
- name: Checkout
@@ -182,6 +160,11 @@ jobs:
182160
with:
183161
name: steampipe-${{ env.PLUGIN_NAME }}_darwin_amd64
184162

163+
- name: Download darwin_arm64 artifact
164+
uses: actions/download-artifact@v2
165+
with:
166+
name: steampipe-${{ env.PLUGIN_NAME }}_darwin_arm64
167+
185168
- name: List files
186169
run: ls -l
187170

@@ -253,6 +236,7 @@ jobs:
253236
--manifest-config config.json:application/vnd.turbot.steampipe.config.v1+json \
254237
--manifest-annotations annotations.json \
255238
steampipe-plugin-${PLUGIN_NAME}_darwin_amd64.gz:application/vnd.turbot.steampipe.plugin.darwin-amd64.layer.v1+gzip \
239+
steampipe-plugin-${PLUGIN_NAME}_darwin_arm64.gz:application/vnd.turbot.steampipe.plugin.darwin-arm64.layer.v1+gzip \
256240
steampipe-plugin-${PLUGIN_NAME}_linux_amd64.gz:application/vnd.turbot.steampipe.plugin.linux-amd64.layer.v1+gzip \
257241
steampipe-plugin-${PLUGIN_NAME}_linux_arm64.gz:application/vnd.turbot.steampipe.plugin.linux-arm64.layer.v1+gzip \
258242
docs:application/vnd.turbot.steampipe.plugin.docs.layer.v1+tar \

.goreleaser.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ builds:
1111
goos:
1212
- linux
1313
- darwin
14-
#- windows #- not yet.....
14+
1515
goarch:
1616
- amd64
1717
- arm64
18-
ignore:
19-
- goos: darwin # docs suggest that darwin arm64 should compile, but doesnt...
20-
goarch: arm64
2118

22-
id: "steampipe-zendesk"
19+
id: "steampipe"
2320
binary: "{{ .ProjectName }}.plugin"
2421

2522
archives:
@@ -36,4 +33,3 @@ changelog:
3633
exclude:
3734
- "^docs:"
3835
- "^test:"
39-

0 commit comments

Comments
 (0)