chore: execute goimports to format the code #218
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: build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # for GITHUB_TOKEN | |
| steps: | |
| - name: clone repo | |
| uses: actions/[email protected] | |
| - name: download and install | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.5' | |
| - name: install protoc (protobuf) | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: "33.0" | |
| include-pre-releases: false | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: chmod +x | |
| run: chmod +x ./scripts/install_deps && chmod +x ./scripts/build | |
| - name: install dependencies | |
| run: ./scripts/install_deps | |
| - name: build linux | |
| run: ./scripts/build linux amd64 dev | |
| - name: run binary version check | |
| run: ./build/snetd-linux-amd64-dev version | |
| - name: build darwin | |
| run: ./scripts/build darwin amd64 dev | |
| - name: build windows | |
| run: ./scripts/build windows amd64 dev |