Skip to content

Commit

Permalink
Drop support for Windows 10 Version 21H2 or previous
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Aug 12, 2023
1 parent 42be352 commit 9b5e114
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions tests/goss-win.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
command:
version:
exec: "xmlpaste.exe -v"
exit-status: 0
stdout: "xmlpaste 1.1.0-dev\n"

0 comments on commit 9b5e114

Please sign in to comment.