Skip to content

Commit 1f659ee

Browse files
committed
fix: remove redundant build job from CI workflow
1 parent 19e47d0 commit 1f659ee

1 file changed

Lines changed: 1 addition & 55 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -94,60 +94,6 @@ jobs:
9494
fail_ci_if_error: true
9595
verbose: true
9696

97-
build:
98-
name: Build
99-
runs-on: ubuntu-latest
100-
needs: [lint, test]
101-
permissions:
102-
contents: read
103-
id-token: write
104-
attestations: write
105-
strategy:
106-
matrix:
107-
include:
108-
- os: linux
109-
arch: amd64
110-
- os: linux
111-
arch: arm64
112-
- os: darwin
113-
arch: amd64
114-
- os: darwin
115-
arch: arm64
116-
- os: windows
117-
arch: amd64
118-
steps:
119-
- name: Checkout code
120-
uses: actions/checkout@v4
121-
122-
- name: Set up Go
123-
uses: actions/setup-go@v5
124-
with:
125-
go-version: ${{ env.GO_VERSION }}
126-
cache: true
127-
128-
- name: Build binary
129-
env:
130-
GOOS: ${{ matrix.os }}
131-
GOARCH: ${{ matrix.arch }}
132-
run: |
133-
output="terraform-provider-pocketid_${{ matrix.os }}_${{ matrix.arch }}"
134-
if [ "${{ matrix.os }}" = "windows" ]; then
135-
output="${output}.exe"
136-
fi
137-
go build -o "$output" -ldflags "-X main.version=${{ github.ref_name }}" .
138-
139-
- name: Generate build provenance attestations
140-
uses: actions/attest-build-provenance@v1
141-
with:
142-
subject-path: |
143-
terraform-provider-pocketid*
144-
145-
- name: Upload artifacts
146-
uses: actions/upload-artifact@v4
147-
with:
148-
name: terraform-provider-pocketid_${{ matrix.os }}_${{ matrix.arch }}
149-
path: terraform-provider-pocketid*
150-
15197
# Acceptance tests are not run in CI because Pocket-ID requires:
15298
# 1. Manual passkey registration through the UI
15399
# 2. Manual API key generation through the UI
@@ -191,7 +137,7 @@ jobs:
191137
pre-release:
192138
name: Pre-release
193139
runs-on: ubuntu-latest
194-
needs: [lint, test, build]
140+
needs: [lint, test]
195141
if: github.ref == 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' && github.actor != 'dependabot[bot]'
196142
permissions:
197143
contents: write

0 commit comments

Comments
 (0)