Skip to content

Commit

Permalink
chore: Add build workflow for sdkexamples
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
TerryHowe committed Nov 17, 2024
1 parent 0d578e7 commit ac17e3f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on:
push:
paths:
- sdkexamples/**
branches:
- main
pull_request:
paths:
- sdkexamples/**
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23']
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected]
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # [email protected]
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Build sdkexamples
run: make sdkexamples
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ run-link-checker:
bin/htmltest

check-links-ci: set-up-link-checker run-link-checker

.PHONY: sdkexamples
sdkexamples:
cd sdkexamples; make
3 changes: 3 additions & 0 deletions sdkexamples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: build
build: $(BINDIR)/$(BINNAME)
go build ./...

0 comments on commit ac17e3f

Please sign in to comment.