.github/workflows: reorder tests (#256)
This change also removes unneeded space chars.
- commit
- 4c3273e2bc2eb3837d50f388d7853dacc935bad0
- author
- Hajime Hoshi · · 2024-06-20 12:06 UTC
- committer
- GitHub · · 2024-06-20 12:06 UTC
- parent
- 573eba0
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
1 file · +10 -10
M .github/workflows/test.yml +10 -10
| @@ -39,12 +39,6 @@ jobs: | |||
| 39 | 39 | run: | | |
| 40 | 40 | go vet -v ./... | |
| 41 | 41 | ||
| 42 | - | - name: go build plugin | |
| 43 | - | if: runner.os == 'Linux' || runner.os == 'macOS' | |
| 44 | - | run: | |
| 45 | - | # Make sure that plugin buildmode works since we save the R15 register (#254) | |
| 46 | - | go build -buildmode=plugin ./examples/libc | |
| 47 | - | ||
| 48 | 42 | - name: go build | |
| 49 | 43 | run: | | |
| 50 | 44 | go build -v ./... | |
| @@ -73,6 +67,12 @@ jobs: | |||
| 73 | 67 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | |
| 74 | 68 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | |
| 75 | 69 | ||
| 70 | + | - name: go build (plugin) | |
| 71 | + | if: runner.os == 'Linux' || runner.os == 'macOS' | |
| 72 | + | run: | |
| 73 | + | # Make sure that plugin buildmode works since we save the R15 register (#254) | |
| 74 | + | go build -buildmode=plugin ./examples/libc | |
| 75 | + | ||
| 76 | 76 | - name: go mod vendor | |
| 77 | 77 | if: runner.os != 'Linux' | |
| 78 | 78 | run: | | |
| @@ -158,10 +158,6 @@ jobs: | |||
| 158 | 158 | ||
| 159 | 159 | # verify Go is available | |
| 160 | 160 | go version | |
| 161 | - | ||
| 162 | - | echo "=> go build plugin" | |
| 163 | - | # Make sure that plugin buildmode works since we save the R15 register (#254) | |
| 164 | - | go build -buildmode=plugin ./examples/libc | |
| 165 | 161 | ||
| 166 | 162 | echo "=> go build" | |
| 167 | 163 | go build -v ./... | |
| @@ -188,6 +184,10 @@ jobs: | |||
| 188 | 184 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | |
| 189 | 185 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | |
| 190 | 186 | ||
| 187 | + | echo "=> go build (plugin)" | |
| 188 | + | # Make sure that plugin buildmode works since we save the R15 register (#254) | |
| 189 | + | go build -buildmode=plugin ./examples/libc | |
| 190 | + | ||
| 191 | 191 | echo "=> go mod vendor" | |
| 192 | 192 | mkdir /tmp/vendoring | |
| 193 | 193 | cd /tmp/vendoring | |
| @@ -39,12 +39,6 @@ jobs: | |||||
| 39 | run: | | 39 | run: | | ||
| 40 | go vet -v ./... | 40 | go vet -v ./... | ||
| 41 | 41 | ||||
| 42 | - | - name: go build plugin | |||
| 43 | - | if: runner.os == 'Linux' || runner.os == 'macOS' | |||
| 44 | - | run: | |||
| 45 | - | # Make sure that plugin buildmode works since we save the R15 register (#254) | |||
| 46 | - | go build -buildmode=plugin ./examples/libc | |||
| 47 | - | ||||
| 48 | - name: go build | 42 | - name: go build | ||
| 49 | run: | | 43 | run: | | ||
| 50 | go build -v ./... | 44 | go build -v ./... | ||
| @@ -73,6 +67,12 @@ jobs: | |||||
| 73 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | 67 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | ||
| 74 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | 68 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | ||
| 75 | 69 | ||||
| 70 | + | - name: go build (plugin) | |||
| 71 | + | if: runner.os == 'Linux' || runner.os == 'macOS' | |||
| 72 | + | run: | |||
| 73 | + | # Make sure that plugin buildmode works since we save the R15 register (#254) | |||
| 74 | + | go build -buildmode=plugin ./examples/libc | |||
| 75 | + | ||||
| 76 | - name: go mod vendor | 76 | - name: go mod vendor | ||
| 77 | if: runner.os != 'Linux' | 77 | if: runner.os != 'Linux' | ||
| 78 | run: | | 78 | run: | | ||
| @@ -158,10 +158,6 @@ jobs: | |||||
| 158 | 158 | ||||
| 159 | # verify Go is available | 159 | # verify Go is available | ||
| 160 | go version | 160 | go version | ||
| 161 | - | ||||
| 162 | - | echo "=> go build plugin" | |||
| 163 | - | # Make sure that plugin buildmode works since we save the R15 register (#254) | |||
| 164 | - | go build -buildmode=plugin ./examples/libc | |||
| 165 | 161 | ||||
| 166 | echo "=> go build" | 162 | echo "=> go build" | ||
| 167 | go build -v ./... | 163 | go build -v ./... | ||
| @@ -188,6 +184,10 @@ jobs: | |||||
| 188 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | 184 | env GOOS=freebsd GOARCH=amd64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | ||
| 189 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | 185 | env GOOS=freebsd GOARCH=arm64 go build -gcflags="github.com/ebitengine/purego/internal/fakecgo=-std" -v ./... | ||
| 190 | 186 | ||||
| 187 | + | echo "=> go build (plugin)" | |||
| 188 | + | # Make sure that plugin buildmode works since we save the R15 register (#254) | |||
| 189 | + | go build -buildmode=plugin ./examples/libc | |||
| 190 | + | ||||
| 191 | echo "=> go mod vendor" | 191 | echo "=> go mod vendor" | ||
| 192 | mkdir /tmp/vendoring | 192 | mkdir /tmp/vendoring | ||
| 193 | cd /tmp/vendoring | 193 | cd /tmp/vendoring | ||