@@ -6,19 +6,6 @@ on: # rebuild any PRs and main branch changes
66 branches :
77 - main
88
9- env :
10- DOTNET_SDK_VERSION : " 1.7.0"
11- GO_SDK_VERSION : " 1.35.0"
12- JAVA_SDK_VERSION : " 1.30.1"
13- TYPESCRIPT_SDK_VERSION : " 1.12.1"
14- GO_VERSION : " ^1.21"
15- JAVA_VERSION : " 11"
16- PROTOC_GEN_GO_VERSION : " v1.31.0"
17- PROTOC_VERSION : " 25.1"
18- PYTHON_SDK_VERSION : " 1.14.1"
19- PYTHON_VERSION : " 3.10"
20- RUST_TOOLCHAIN : " 1.74.0"
21-
229jobs :
2310 build-lint-test-go :
2411 runs-on : ubuntu-latest
2714 run : " echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}"
2815 - name : Checkout repo
2916 uses : actions/checkout@v2
17+ - name : Load versions
18+ run : |
19+ set -a && source versions.env && set +a
20+ printenv >> $GITHUB_ENV
3021 - name : Setup Go
3122 uses : actions/setup-go@v2
3223 with :
5142 run : " echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}"
5243 - name : Checkout repo
5344 uses : actions/checkout@v4
45+ - name : Load versions
46+ run : |
47+ set -a && source versions.env && set +a
48+ printenv >> $GITHUB_ENV
5449 - name : Setup Java
5550 uses : actions/setup-java@v2
5651 with :
8277 run : " echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}"
8378 - name : Checkout repo
8479 uses : actions/checkout@v2
80+ - name : Load versions
81+ run : |
82+ set -a && source versions.env && set +a
83+ printenv >> $GITHUB_ENV
8584 - name : Setup Python
8685 uses : actions/setup-python@v1
8786 with :
9796 - name : Setup Go
9897 uses : actions/setup-go@v2
9998 with :
100- go-version : " ${{ env.GO_VERSION }}"
99+ go-version : " ${{ needs.load-versions.outputs.go_version }}"
101100 - name : Build exe
102101 run : go build -o temporal-omes ./cmd
103102 - name : Run local scenario with worker
@@ -118,6 +117,10 @@ jobs:
118117 uses : actions/checkout@v2
119118 with :
120119 submodules : ' true'
120+ - name : Load versions
121+ run : |
122+ set -a && source versions.env && set +a
123+ printenv >> $GITHUB_ENV
121124 - name : Setup TypeScript
122125 uses : actions/setup-node@v4
123126 - name : Initialize TypeScript worker
@@ -148,6 +151,10 @@ jobs:
148151 uses : actions/checkout@v2
149152 with :
150153 submodules : ' true'
154+ - name : Load versions
155+ run : |
156+ set -a && source versions.env && set +a
157+ printenv >> $GITHUB_ENV
151158 - name : Setup Dotnet
152159 uses : actions/setup-dotnet@v3
153160 - name : Check formatting
@@ -174,25 +181,8 @@ jobs:
174181 uses : actions/checkout@v2
175182 with :
176183 submodules : ' true'
177- - uses : actions-rs/toolchain@v1
178- with :
179- profile : minimal
180- toolchain : " ${{ env.RUST_TOOLCHAIN }}"
181- override : true
182- - name : Install protoc
183- uses : arduino/setup-protoc@v2
184- with :
185- version : " ${{ env.PROTOC_VERSION }}"
186- repo-token : ${{ secrets.GITHUB_TOKEN }}
187- - name : Setup Go
188- uses : actions/setup-go@v2
189- with :
190- go-version : " ${{ env.GO_VERSION }}"
191- - name : Install protoc-gen-go
192- run : go install google.golang.org/protobuf/cmd/protoc-gen-go@${{ env.PROTOC_GEN_GO_VERSION }}
193- - name : Build kitchen-sink-gen
194- working-directory : ./loadgen/kitchen-sink-gen
195- run : cargo build
184+ - name : Build proto
185+ run : ./scripts/build_proto.sh
196186 - name : Check diff
197187 run : |
198188 git config --global core.safecrlf false
@@ -217,6 +207,12 @@ jobs:
217207 python-sdk-version : ${{ steps.set-output.outputs.python-sdk-version }}
218208 dotnet-sdk-version : ${{ steps.set-output.outputs.dotnet-sdk-version }}
219209 steps :
210+ - name : Checkout repo
211+ uses : actions/checkout@v2
212+ - name : Load versions
213+ run : |
214+ set -a && source versions.env && set +a
215+ printenv >> $GITHUB_ENV
220216 - name : Set output variables to pass to docker YML
221217 id : set-output
222218 run : |
0 commit comments