Skip to content

Fix version comparison for iTerm 3.5.0 and newer #30

Fix version comparison for iTerm 3.5.0 and newer

Fix version comparison for iTerm 3.5.0 and newer #30

Workflow file for this run

name: Main
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.22
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
go mod download
go mod verify
- name: Build
run: |
export CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}
go build -ldflags "-s -w" \
-trimpath \
-o ./hashcolor-${{ matrix.goos }}-${{ matrix.goarch }} \
./cmd/hashcolor/main.go