Skip to content

Commit 2969d5c

Browse files
committed
fix(ci): replace composite actions
1 parent c8e6adb commit 2969d5c

1 file changed

Lines changed: 36 additions & 12 deletions

File tree

.github/workflows/sdk-pr.yaml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
GO_VERSION: "1.22"
10+
GO_VERSION: "1.25"
1111
JAVA_VERSION: "17"
1212

1313
jobs:
@@ -20,24 +20,34 @@ jobs:
2020
with:
2121
key: ${{ secrets.SSH_PRIVATE_KEY }}
2222
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
23+
2324
- name: Install Java
2425
uses: actions/setup-java@v5
2526
with:
2627
distribution: "temurin"
2728
java-version: ${{ env.JAVA_VERSION }}
29+
2830
- name: Checkout generator repo
2931
uses: actions/checkout@v6
3032
with:
3133
repository: "stackitcloud/stackit-sdk-generator"
3234
ref: "main"
33-
- name: Build
34-
uses: ./.github/actions/build/go
35+
36+
- name: Install Go
37+
uses: actions/setup-go@v5
3538
with:
3639
go-version: ${{ env.GO_VERSION }}
40+
41+
- name: Install project tools and dependencies
42+
shell: bash
43+
run: make project-tools
44+
3745
- name: Download OAS
3846
run: make download-oas
47+
3948
- name: Generate SDK
40-
run: make generate-sdk
49+
run: make generate-go-sdk
50+
4151
- name: Push SDK
4252
env:
4353
GH_REPO: "stackitcloud/stackit-sdk-go"
@@ -54,31 +64,42 @@ jobs:
5464
with:
5565
key: ${{ secrets.SSH_PRIVATE_KEY }}
5666
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
67+
5768
- name: Install Java
5869
uses: actions/setup-java@v5
5970
with:
6071
distribution: "temurin"
6172
java-version: ${{ env.JAVA_VERSION }}
73+
6274
- name: Checkout generator repo
6375
uses: actions/checkout@v6
6476
with:
6577
repository: "stackitcloud/stackit-sdk-generator"
6678
ref: "main"
79+
6780
- name: install uv
6881
uses: astral-sh/setup-uv@v7
6982
with:
7083
version: "0.10.4"
71-
- name: Build
72-
uses: ./.github/actions/build/python
73-
with:
74-
go-version: ${{ env.GO_VERSION }}
84+
85+
- name: Install project tools and dependencies
86+
shell: bash
87+
run: |
88+
python -m venv .venv
89+
. .venv/bin/activate
90+
python -m pip install --upgrade pip
91+
make project-tools LANGUAGE=python
92+
7593
- name: Download OAS
7694
run: make download-oas
95+
7796
- name: Generate SDK
78-
run: make generate-sdk LANGUAGE=python
97+
run: make generate-python-sdk
98+
7999
- name: Install Python SDK
80100
working-directory: ./sdk-repo-updated
81101
run: make install-dev
102+
82103
- name: Push Python SDK
83104
env:
84105
GH_REPO: "stackitcloud/stackit-sdk-python"
@@ -95,22 +116,25 @@ jobs:
95116
with:
96117
key: ${{ secrets.SSH_PRIVATE_KEY }}
97118
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
119+
98120
- name: Install Java
99121
uses: actions/setup-java@v5
100122
with:
101123
distribution: "temurin"
102124
java-version: ${{ env.JAVA_VERSION }}
125+
103126
- name: Checkout generator repo
104127
uses: actions/checkout@v6
105128
with:
106129
repository: "stackitcloud/stackit-sdk-generator"
107130
ref: "main"
131+
108132
- name: Download OAS
109133
run: make download-oas
134+
110135
- name: Generate SDK
111-
run: make generate-sdk
112-
env:
113-
LANGUAGE: "java"
136+
run: make generate-java-sdk
137+
114138
- name: Push Java SDK
115139
env:
116140
GH_REPO: "stackitcloud/stackit-sdk-java"

0 commit comments

Comments
 (0)