File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Basic validation
1
+ name : validate Windows installation
2
2
3
3
on :
4
4
push :
16
16
strategy :
17
17
matrix :
18
18
cache : [false, true]
19
- go : [1.20.1]
19
+ go : [1.20.1, 1.20.5]
20
+ name : ' Setup ${{ matrix.go }} cache: ${{ matrix.cache }}'
20
21
steps :
21
22
- uses : actions/checkout@v3
22
23
26
27
cache : ${{ matrix.cache }}
27
28
name : v4-cache-${{ matrix.cache }}
28
29
30
+ - run : |
31
+ if [ -e 'D:\hostedtoolcache\windows\go\${{ matrix.go }}\x64' ];then
32
+ echo 'D:\hostedtoolcache\windows\go\${{ matrix.go }}\x64 must not exist for hosted version of go';
33
+ exit 1
34
+ fi
35
+
36
+ du -m -s 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64'
37
+ # make sure drive c: contains the folder
38
+ size=$(du -m -s 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64'|cut -f1 -d$'\t')
39
+ if [ $size -eq 0 ];then
40
+ echo 'Size of the hosted go installed on drive c: must be above zero'
41
+ exit 1
42
+ fi
43
+ shell: bash
44
+ name: Hosted go should not have link
45
+ if: ${{ matrix.go == '1.20.5' }}
46
+
29
47
- run : |
30
48
du -m -s 'D:\hostedtoolcache\windows\go\${{ matrix.go }}\x64'
31
49
size=$(du -m -s 'D:\hostedtoolcache\windows\go\${{ matrix.go }}\x64'|cut -f1 -d$'\t')
44
62
fi
45
63
shell: bash
46
64
name: Disk usage
65
+ if: ${{ matrix.go != '1.20.5' }}
47
66
48
67
- run : |
49
68
echo $PATH
You can’t perform that action at this time.
0 commit comments