chore(deps): bump Go module dependencies #85
Workflow file for this run
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: GoDoxy CLI Binary | |
| on: | |
| pull_request: | |
| paths: | |
| - "cmd/cli/**" | |
| - "internal/api/v1/docs/swagger.json" | |
| - ".shadowtree.toml" | |
| - ".github/workflows/cli-binary.yml" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "cmd/cli/**" | |
| - "internal/api/v1/docs/swagger.json" | |
| - ".shadowtree.toml" | |
| - ".github/workflows/cli-binary.yml" | |
| tags: | |
| - v* | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: ubuntu-latest | |
| platform: linux/amd64 | |
| binary_name: godoxy-cli-linux-amd64 | |
| - runner: ubuntu-24.04-arm | |
| platform: linux/arm64 | |
| binary_name: godoxy-cli-linux-arm64 | |
| name: Build ${{ matrix.platform }} | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify dependencies | |
| run: go mod verify | |
| - name: Install Shadowtree | |
| run: go install github.com/yusing/shadowtree/cmd/shadowtree@latest | |
| - name: Build CLI | |
| run: | | |
| shadowtree build component=cli name=${{ matrix.binary_name }} | |
| - name: Check binary | |
| run: | | |
| file bin/${{ matrix.binary_name }} | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.binary_name }} | |
| path: bin/${{ matrix.binary_name }} | |
| - name: Upload to release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: bin/${{ matrix.binary_name }} |