diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7a43621..bfacab5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,13 +15,22 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v1 - - uses: actions/setup-go@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.17" - - name: Build native + go-version: "1.22" + - name: Setup CGO Environment + run: | + if [ ${{ matrix.os }} == 'macOS-latest' ] ; then + echo "CGO_ENABLED=1" >> "$GITHUB_ENV" + fi + shell: bash + - name: Build AMD64 run: GOARCH=amd64 go build -v ./... shell: bash + - name: Build ARM64 + run: GOARCH=arm64 go build -v ./... + shell: bash - name: Install socat if: matrix.os == 'ubuntu-latest' run: sudo apt-get install socat @@ -51,10 +60,10 @@ jobs: runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v1 - - uses: actions/setup-go@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.17" + go-version: "1.22" - name: Cross-build run: | set ${{ matrix.go-os-pairs }} diff --git a/README.md b/README.md index af82a9d..c32fa18 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,17 @@ # go.bug.st/serial -A cross-platform serial library for go-lang. +A cross-platform serial port library for Go. ## Documentation and examples -See the godoc here: https://godoc.org/go.bug.st/serial +See the package documentation here: https://pkg.go.dev/go.bug.st/serial ## go.mod transition -This library now support `go.mod` with the import `go.bug.st/serial`. +This library supports `go.mod` with the import `go.bug.st/serial`. -If you came from the pre-`go.mod` era please update your import paths from `go.bug.st/serial.v1` to `go.bug.st/serial` to receive new updates. Anyway, the latest `v1` release should still be available using the old import. +If you came from the pre-`go.mod` era please update your import paths from `go.bug.st/serial.v1` to `go.bug.st/serial` to receive updates. The latest `v1` release is still available using the old import path. ## Credits @@ -20,7 +20,7 @@ If you came from the pre-`go.mod` era please update your import paths from `go.b ## License -The software is release under a [BSD 3-clause license] +This software is released under the [BSD 3-clause license]. [contributors]: https://github.com/bugst/go-serial/graphs/contributors [BSD 3-clause license]: https://github.com/bugst/go-serial/blob/master/LICENSE diff --git a/portlist/portlist.go b/portlist/portlist.go index 845a6c9..5d58409 100644 --- a/portlist/portlist.go +++ b/portlist/portlist.go @@ -12,7 +12,7 @@ // Port: /dev/cu.usbmodemFD121 // USB ID 2341:8053 // USB serial FB7B6060504B5952302E314AFF08191A -// + package main import (