File tree Expand file tree Collapse file tree 6 files changed +59
-2
lines changed Expand file tree Collapse file tree 6 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 5454 git fetch --tags --force --prune
5555 VERSION=$(git describe --tags --dirty)
5656 STATIC_FLAG='-w -extldflags "-static"'
57- for platform in darwin/amd64 linux/amd64 linux/ppc64le
57+ for platform in darwin/amd64 linux/amd64 linux/ppc64le windows/amd64
5858 do
5959 os_name=$(echo "$platform" | cut -d "/" -f 1)
6060 arch=$(echo "$platform" | cut -d "/" -f 2)
Original file line number Diff line number Diff line change 3030 mkdir -p bin
3131 VERSION=${{ steps.get_version.outputs.VERSION }}
3232 STATIC_FLAG='-w -extldflags "-static"'
33- for platform in darwin/amd64 linux/amd64 linux/ppc64le
33+ for platform in darwin/amd64 linux/amd64 linux/ppc64le windows/amd64
3434 do
3535 os_name=$(echo "$platform" | cut -d "/" -f 1)
3636 arch=$(echo "$platform" | cut -d "/" -f 2)
@@ -110,6 +110,26 @@ jobs:
110110 asset_name : pvsadm-darwin-amd64.tar.gz
111111 asset_content_type : application/tar+gzip
112112
113+ - name : Upload Windows - amd64
114+ uses : actions/upload-release-asset@v1
115+ env :
116+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117+ with :
118+ upload_url : ${{ steps.create_release.outputs.upload_url }}
119+ asset_path : ./bin/windows-amd64/pvsadm
120+ asset_name : pvsadm-windows-amd64
121+ asset_content_type : application/octet-stream
122+
123+ - name : Upload Windows - amd64 - tar.gz
124+ uses : actions/upload-release-asset@v1
125+ env :
126+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
127+ with :
128+ upload_url : ${{ steps.create_release.outputs.upload_url }}
129+ asset_path : pvsadm-windows-amd64.tar.gz
130+ asset_name : pvsadm-windows-amd64.tar.gz
131+ asset_content_type : application/tar+gzip
132+
113133 - name : Upload all
114134 uses : actions/upload-release-asset@v1
115135 env :
Original file line number Diff line number Diff line change 1+ //+build !windows
2+
13package prep
24
35import (
Original file line number Diff line number Diff line change 1+ package prep
2+
3+ import (
4+ "fmt"
5+ )
6+
7+ func Chroot (path string ) error {
8+ return fmt .Errorf ("Not supported on windows platform" )
9+ }
10+
11+ func ExitChroot () error {
12+ return fmt .Errorf ("Not supported on windows platform" )
13+ }
Original file line number Diff line number Diff line change 1+ // +build !windows
2+
13package diskspace
24
35import (
Original file line number Diff line number Diff line change 1+ package diskspace
2+
3+ import (
4+ "fmt"
5+ )
6+
7+ type Rule struct {
8+ }
9+
10+ func (p * Rule ) String () string {
11+ return "diskspace"
12+ }
13+
14+ func (p * Rule ) Verify () error {
15+ return fmt .Errorf ("Not supported on Windows platform" )
16+ }
17+
18+ func (p * Rule ) Hint () string {
19+ return "Please retry on linux/ppc64le platform"
20+ }
You can’t perform that action at this time.
0 commit comments