diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8d27111..11e407c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: # https://docs.github.com/ja/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources - os: [ macos-11, macos-12, macos-13, macos-latest ] + os: [ macos-11, macos-12, macos-13, macos-latest, windows-2019, windows-2022, windows-latest ] go: [ '1.20' ] steps: @@ -28,6 +28,9 @@ jobs: - if: runner.os == 'macOS' run: GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -ldflags "-X main.version=${{ env.xmlpaste_version }}" xmlpaste.go xmlpaste_darwin.go + - if: runner.os == 'Windows' + run: go build -ldflags "-X main.version=${{ env.xmlpaste_version }}" xmlpaste.go xmlpaste_windows.go + - shell: bash run: echo "goss_commit_hash=32aae7649678efb2270b0644350ab007abe96c40" >> "$GITHUB_ENV" # v0.4.0-rc.3 @@ -42,10 +45,26 @@ jobs: make build cd .. + - if: runner.os == 'Windows' + shell: bash + run: | + curl -L "https://github.com/goss-org/goss/archive/${{ env.goss_commit_hash }}.tar.gz" -o goss.tar.gz + tar xzvf goss.tar.gz + cd "goss-${{ env.goss_commit_hash }}" + go build -o goss-windows-amd64.exe github.com/goss-org/goss/cmd/goss + mkdir release + mv goss-windows-amd64.exe release/ + cd .. + - if: runner.os == 'macOS' run: | "./goss-${{ env.goss_commit_hash }}/release/goss-darwin-amd64" --gossfile tests/goss.yaml validate --format documentation + - if: runner.os == 'Windows' + shell: bash + run: | + "./goss-${{ env.goss_commit_hash }}/release/goss-windows-amd64.exe" --gossfile tests/goss-win.yaml validate --format documentation + - run: ./xmlpaste -v # based on: github.com/koron-go/_skeleton/.github/workflows/go.yml diff --git a/README.md b/README.md index c590a25..b38c107 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ set the clipboard to (xml as text) System Requirements ----- - macOS version : macOS Big Sur 11, macOS Monterey 12 or macOS Ventura 13 -- Windows version : Windows 10 +- Windows version : Windows 10 Version 22H2 Download diff --git a/release-notes.txt b/release-notes.txt index 70a233d..f0276c7 100644 --- a/release-notes.txt +++ b/release-notes.txt @@ -7,6 +7,7 @@ Version: 1.1.0 (in development) - Add suport for macOS Big Sur 11, macOS Monterey 12 and macOS Ventura 13. - Built with Go 1.20. - [INFO] Drop support for macOS Catalina 10.15 or previous. +- [INFO] Drop support for Windows 10 Version 21H2 or previous. - [INFO] Drop support for Windows 7. Version: 1.0.0 diff --git a/tests/goss-win.yaml b/tests/goss-win.yaml new file mode 100644 index 0000000..1b06950 --- /dev/null +++ b/tests/goss-win.yaml @@ -0,0 +1,5 @@ +command: + version: + exec: "xmlpaste.exe -v" + exit-status: 0 + stdout: "xmlpaste 1.1.0-dev\n"