Skip to content

Commit c3c7771

Browse files
Added build stage for sdk.
1 parent cb0be25 commit c3c7771

File tree

2 files changed

+78
-29
lines changed

2 files changed

+78
-29
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Build SDKs"
2+
description: "build sdks"
3+
inputs:
4+
version:
5+
description: "Version number"
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 18
15+
16+
- name: Make Config
17+
working-directory: .
18+
run: make config
19+
shell: bash
20+
21+
- name: Build sdks
22+
working-directory: ./sdk
23+
shell: bash
24+
run: make build
25+
26+
- name: Upload ts artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
path: "sdk/typescript"
30+
name: sdk-ts-${{ inputs.version }}
31+
32+
- name: Upload python artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
path: "sdk/python"
36+
name: sdk-python-${{ inputs.version }}

.github/workflows/stage-3-build.yaml

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,50 @@ jobs:
4444
uses: ./.github/actions/build-docs
4545
with:
4646
version: "${{ inputs.version }}"
47-
artefact-1:
48-
name: "Artefact 1"
49-
runs-on: ubuntu-latest
50-
timeout-minutes: 3
51-
steps:
52-
- name: "Checkout code"
53-
uses: actions/checkout@v4
54-
- name: "Build artefact 1"
55-
run: |
56-
echo "Building artefact 1 ..."
57-
- name: "Check artefact 1"
58-
run: |
59-
echo "Checking artefact 1 ..."
60-
- name: "Upload artefact 1"
61-
run: |
62-
echo "Uploading artefact 1 ..."
63-
# TODO: Use either action/cache or action/upload-artifact
64-
artefact-n:
65-
name: "Artefact n"
47+
48+
artefact-sdks:
49+
name: "Build SDKs"
6650
runs-on: ubuntu-latest
6751
timeout-minutes: 3
6852
steps:
6953
- name: "Checkout code"
7054
uses: actions/checkout@v4
71-
- name: "Build artefact n"
72-
run: |
73-
echo "Building artefact n ..."
74-
- name: "Check artefact n"
75-
run: |
76-
echo "Checking artefact n ..."
77-
- name: "Upload artefact n"
78-
run: |
79-
echo "Uploading artefact n ..."
80-
# TODO: Use either action/cache or action/upload-artifact
55+
- name: "Build sdks"
56+
uses: ./.github/actions/build-sdk
57+
with:
58+
version: "${{ inputs.version }}"
59+
60+
# artefact-1:
61+
# name: "Artefact 1"
62+
# runs-on: ubuntu-latest
63+
# timeout-minutes: 3
64+
# steps:
65+
# - name: "Checkout code"
66+
# uses: actions/checkout@v4
67+
# - name: "Build artefact 1"
68+
# run: |
69+
# echo "Building artefact 1 ..."
70+
# - name: "Check artefact 1"
71+
# run: |
72+
# echo "Checking artefact 1 ..."
73+
# - name: "Upload artefact 1"
74+
# run: |
75+
# echo "Uploading artefact 1 ..."
76+
# # TODO: Use either action/cache or action/upload-artifact
77+
# artefact-n:
78+
# name: "Artefact n"
79+
# runs-on: ubuntu-latest
80+
# timeout-minutes: 3
81+
# steps:
82+
# - name: "Checkout code"
83+
# uses: actions/checkout@v4
84+
# - name: "Build artefact n"
85+
# run: |
86+
# echo "Building artefact n ..."
87+
# - name: "Check artefact n"
88+
# run: |
89+
# echo "Checking artefact n ..."
90+
# - name: "Upload artefact n"
91+
# run: |
92+
# echo "Uploading artefact n ..."
93+
# # TODO: Use either action/cache or action/upload-artifact

0 commit comments

Comments
 (0)