File tree 1 file changed +59
-0
lines changed
1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 93
93
if : ${{ matrix.race }} == "" # -race is not supported on linux/386
94
94
run : make GOARCH=386 test
95
95
96
+ test-actuated :
97
+ runs-on : actuated-arm64-6cpu-8gb
98
+ steps :
99
+ # https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md
100
+ # vmmeter start
101
+ - name : Prepare arkade
102
+ uses : alexellis/arkade-get@master
103
+ with :
104
+ crane : latest
105
+ print-summary : false
106
+
107
+ - name : Install vmmeter
108
+ run : |
109
+ crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin
110
+
111
+ - name : Run vmmeter
112
+ uses : self-actuated/vmmeter-action@master
113
+ # vmmeter end
114
+
115
+ - uses : actions/checkout@v4
116
+
117
+ - name : enable selinux
118
+ run : |
119
+ sudo apt update
120
+ sudo apt install -y policycoreutils selinux-basics selinux-utils
121
+ sudo selinux-activate
122
+ #------------
123
+ sestatus
124
+ #------------
125
+
126
+ - name : host info
127
+ run : |
128
+ set -x
129
+ # Sync `set -x` outputs with command ouputs
130
+ exec 2>&1
131
+ # Version
132
+ uname -a
133
+ cat /etc/os-release
134
+ # SELinux
135
+ sestatus
136
+
137
+ - name : install Go
138
+ uses : actions/setup-go@v5
139
+ with :
140
+ go-version : 1.23.x
141
+
142
+ - name : build
143
+ run : make build
144
+
145
+ - name : test
146
+ run : make test
147
+
148
+ - name : test -race
149
+ run : make TESTFLAGS="-race" test
150
+
151
+ - name : test 32-bit
152
+ run : make GOARCH=arm test
153
+
96
154
all-done :
97
155
needs :
98
156
- commit
@@ -101,6 +159,7 @@ jobs:
101
159
- cross
102
160
- test-stubs
103
161
- test
162
+ - test-actuated
104
163
runs-on : ubuntu-22.04
105
164
steps :
106
165
- run : echo "All jobs completed"
You can’t perform that action at this time.
0 commit comments