feat: Add comprehensive CLI options, export functionality, and TUI fi… #4
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: CI/CD | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| release: | |
| types: [published] | |
| jobs: | |
| lint-build: | |
| name: Lint & Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.56 | |
| - name: Build | |
| run: | | |
| go build -o gpu-tracker ./cmd/gpu-tracker | |
| release: | |
| name: Build & Release Binary | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'release' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Build (Linux amd64) | |
| run: | | |
| go build -o gpu-tracker ./cmd/gpu-tracker | |
| - name: Upload Binary to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| gpu-tracker |