fix: codex update (#121) #38
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 | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Run go fmt | |
| run: | | |
| if [ -n "$(gofmt -s -l .)" ]; then | |
| echo "Code is not formatted. Run 'go fmt ./...'" | |
| gofmt -s -d . | |
| exit 1 | |
| fi | |
| - name: Run go vet | |
| run: go vet ./... | |
| test: | |
| name: Test | |
| needs: lint | |
| strategy: | |
| matrix: | |
| os: [macos-latest] | |
| go-version: ['1.23', '1.24'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run tests | |
| run: go test -short -v ./... | |
| build: | |
| name: Build | |
| needs: test | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| goos: darwin | |
| goarch: amd64 | |
| binary: clanker | |
| - os: macos-latest | |
| goos: darwin | |
| goarch: arm64 | |
| binary: clanker | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Build | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| run: go build -o ${{ matrix.binary }} ./main.go | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: clanker-${{ matrix.goos }}-${{ matrix.goarch }} | |
| path: ${{ matrix.binary }} | |
| retention-days: 7 |