golang: ci: install libuuid1 #3
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
| name: Go Build and Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Install libuuid1 uuid-dev | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libuuid1 uuid-dev | |
| - name: Get dependencies | |
| run: | | |
| cd runtime/golang/helloworld | |
| go mod tidy | |
| - name: Build | |
| run: | | |
| cd runtime/golang/helloworld | |
| go build -v | |
| - name: Test | |
| run: | | |
| cd runtime/golang/helloworld | |
| go test -v |