From bac809c5a1a385fa544b29a7fcabe9c980c5a7fd Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 18 Mar 2024 22:25:55 +0100 Subject: [PATCH 1/4] Fixed minor documentation typos --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b05796c..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 avaiable 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 From 671075c6acc7965eca6d30a0ba4020683d0e6667 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 1 Apr 2024 16:04:53 +0200 Subject: [PATCH 2/4] Go-format source code --- portlist/portlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ( From 03c961bc8afed1fd4bd8043607d1441dee5b83e6 Mon Sep 17 00:00:00 2001 From: Andre Renaud Date: Tue, 28 May 2024 09:10:28 +1200 Subject: [PATCH 3/4] Workflows: Use CGO_ENABLED=1 for MacOS Also enable explicit ARM64 builds --- .github/workflows/test.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7a43621..01c4691 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,9 +19,18 @@ jobs: - uses: actions/setup-go@v1 with: go-version: "1.17" - - name: Build native + - 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 From 1282f62c6e37fb2eed3520f9cf65bfd93dfb5a83 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 24 Jun 2024 17:24:35 +0200 Subject: [PATCH 4/4] Bump GitHub workflow actions to latest versions (#185) * Bump GitHub workflow actions to latest versions * Fixed typo --------- Co-authored-by: Cristian Maglie --- .github/workflows/test.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 01c4691..bfacab5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,10 +15,10 @@ 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" + go-version: "1.22" - name: Setup CGO Environment run: | if [ ${{ matrix.os }} == 'macOS-latest' ] ; then @@ -60,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 }}