Skip to content

Commit 3d6253e

Browse files
committed
chore: Add GitHub Actions workflow for building Terraform Provider
1 parent 5c8706a commit 3d6253e

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build-tf.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Terraform Provider
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-terraform-provider:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- arch: amd64
19+
os: linux
20+
- arch: amd64
21+
os: darwin
22+
- arch: arm64
23+
os: linux
24+
- arch: arm64
25+
os: darwin
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup bazel
31+
uses: ./.github/actions/setup_bazel_nix
32+
with:
33+
useCache: "false"
34+
35+
- name: Build Terraform Provider Binary
36+
uses: ./.github/actions/build_tf_provider
37+
with:
38+
targetOS: ${{ matrix.os }}
39+
targetArch: ${{ matrix.arch }}
40+
41+
- name: Upload Terraform Provider Binary as artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: terraform-provider-constellation-${{ matrix.os }}-${{ matrix.arch }}
45+
path: |
46+
build/terraform-provider-constellation-${{ matrix.os }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)