Update actions/setup-go action to v7 #125
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
| # To test this workflow locally, run the following command: | |
| # act --use-gitignore=false | |
| name: Build | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26' | |
| - name: Build Go library | |
| working-directory: ./src-go/server | |
| run: | | |
| go build -o ../../src/main/resources/linux-x86-64/server.so -buildmode=c-shared ./cmd/main.go | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v3 | |
| - name: Build with Gradle | |
| run: ./gradlew buildJar | |
| - name: List binaries | |
| run: | | |
| ls -lh ./src/main/resources/linux-x86-64/server.so | |
| ls -lh ./build/libs/*.jar |