Skip to content

Commit 270258a

Browse files
committed
[CI] Add Golang build.
1 parent 660c96b commit 270258a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,32 @@ jobs:
343343
toolchain: ${{ matrix.rust }}
344344
override: true
345345
- run: ./gradlew runRustTests
346+
347+
golang-build:
348+
name: Golang ${{ matrix.version }}
349+
runs-on: ubuntu-latest
350+
strategy:
351+
fail-fast: false
352+
matrix:
353+
version: [ '1.22.x' ]
354+
steps:
355+
- name: Checkout code
356+
uses: actions/checkout@v4
357+
with:
358+
ref: ${{ github.sha }}
359+
- name: Cache Gradle dependencies
360+
uses: actions/cache@v4
361+
with:
362+
path: ~/.gradle/caches
363+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
364+
restore-keys: |
365+
${{ runner.os }}-gradle-
366+
- name: Cache Gradle wrappers
367+
uses: actions/cache@v4
368+
with:
369+
path: ~/.gradle/wrapper
370+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
371+
- name: Generate codecs
372+
run: ./gradlew generateGolangCodecs
373+
- name: Go
374+
run: cd gocode && make

0 commit comments

Comments
 (0)