This repository was archived by the owner on Sep 11, 2025. It is now read-only.
chore(deps): Update go minor and patch #532
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-sdk-go-build | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
paths: | |
- .github/workflows/ci-sdk-go-build.yml | |
- sdk/go/** | |
permissions: | |
contents: read | |
jobs: | |
get-dirs: | |
if: github.event_name == 'pull_request' | |
name: search | |
runs-on: ubuntu-latest | |
outputs: | |
tools_dirs: ${{ steps.get-tools-dirs.outputs.dirs }} | |
examples_dirs: ${{ steps.get-examples-dirs.outputs.dirs }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Find tools | |
id: get-tools-dirs | |
run: > | |
echo "dirs=$( | |
find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d | | |
sed 's|^\./||' | | |
jq -Rsc 'split("\n")[:-1]' | |
)" >> ${GITHUB_OUTPUT} | |
- name: Find examples | |
id: get-examples-dirs | |
run: > | |
echo "dirs=$( | |
find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d | | |
sed 's|^\./||' | | |
jq -Rsc 'split("\n")[:-1]' | |
)" >> ${GITHUB_OUTPUT} | |
sdk-go-build-tools: | |
needs: get-dirs | |
if: github.event_name == 'pull_request' | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: ${{ fromJson(needs.get-dirs.outputs.tools_dirs) }} | |
defaults: | |
run: | |
working-directory: ${{ matrix.dir }} | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Setup Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: 1.25.1 | |
cache-dependency-path: ./sdk/go/go.sum | |
- name: Build Program | |
run: go build . | |
sdk-go-build-examples: | |
needs: get-dirs | |
if: github.event_name == 'pull_request' | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: ${{ fromJson(needs.get-dirs.outputs.examples_dirs) }} | |
defaults: | |
run: | |
working-directory: ${{ matrix.dir }} | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Setup Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: 1.25.1 | |
cache-dependency-path: "${{ matrix.dir }}/go.sum" | |
- name: Setup TinyGo | |
uses: acifani/setup-tinygo@v2 | |
with: | |
tinygo-version: 0.39.0 | |
- name: Build Program | |
run: ./build.sh |