gorgonia.org/gorgonia@v0.9.17/.github/workflows/runner-github-ubuntu-amd64.yml (about) 1 ## DO NOT EDIT - This file is generated 2 on: [pull_request] 3 name: Build and Tests on Linux/amd64 4 env: 5 GOPROXY: "https://proxy.golang.org" 6 jobs: 7 stable-go: 8 name: Build and test on latest stable Go release - Linux/amd64 9 env: 10 GOVERSION: '1.16.x' 11 strategy: 12 matrix: 13 experimental: [false] 14 tags: [none,avx,sse] 15 runs-on: "ubuntu-latest" 16 continue-on-error: ${{ matrix.experimental }} 17 steps: 18 - name: Install Go 19 uses: actions/setup-go@v2 20 with: 21 go-version: ${{ env.GOVERSION }} 22 # Get values for cache paths to be used in later steps 23 - id: go-cache-paths 24 run: | 25 echo "::set-output name=go-build::$(go env GOCACHE)" 26 echo "::set-output name=go-mod::$(go env GOMODCACHE)" 27 - name: Checkout 28 uses: actions/checkout@v2 29 # Cache go build cache, used to speedup go test 30 - name: Go Build Cache 31 if: steps.go-cache-paths.outputs.go-build != '' 32 id: build-cache 33 uses: actions/cache@v2 34 with: 35 path: ${{ steps.go-cache-paths.outputs.go-build }} 36 key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} 37 restore-keys: | 38 ${{ runner.os }}-go-build- 39 # Cache go mod cache, used to speedup builds 40 - name: Go Mod Cache 41 if: steps.go-cache-paths.outputs.go-mod != '' 42 id: build-mod-cache 43 uses: actions/cache@v2 44 with: 45 path: ${{ steps.go-cache-paths.outputs.go-mod }} 46 key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} 47 restore-keys: | 48 ${{ runner.os }}-go-mod- 49 - name: Install Dependencies 50 if: steps.build-mod-cache.outputs.cache-hit != 'true' 51 run: | 52 GOARCH=arm GOOS=linux go get -t . 53 GOARCH=amd64 GOOS=linux go get -t . 54 GOARCH=amd64 GOOS=darwin go get -t . 55 - name: Build without tags (all plateforms) 56 if: matrix.tags == 'none' 57 run: | 58 GOARCH=arm GOOS=linux go build . 59 GOARCH=amd64 GOOS=linux go build . 60 GOARCH=amd64 GOOS=darwin go build . 61 - name: Test without tags 62 if: matrix.tags == 'none' 63 run: | 64 go test -race -timeout 20m 65 - name: Build with tag 66 if: matrix.tags != 'none' 67 run: | 68 go build -tags=${{ matrix.tags }} 69 - name: Test with tag 70 if: matrix.tags != 'none' 71 run: | 72 go test -race -timeout 20m -tags=${{ matrix.tags }} 73 previous-go: 74 name: Build and test on previous stable Go release - Linux/amd64 75 env: 76 GOVERSION: '1.15.x' 77 strategy: 78 matrix: 79 experimental: [false] 80 tags: [none,avx,sse] 81 runs-on: "ubuntu-latest" 82 continue-on-error: ${{ matrix.experimental }} 83 steps: 84 - name: Install Go 85 uses: actions/setup-go@v2 86 with: 87 go-version: ${{ env.GOVERSION }} 88 # Get values for cache paths to be used in later steps 89 - id: go-cache-paths 90 run: | 91 echo "::set-output name=go-build::$(go env GOCACHE)" 92 echo "::set-output name=go-mod::$(go env GOMODCACHE)" 93 - name: Checkout 94 uses: actions/checkout@v2 95 # Cache go build cache, used to speedup go test 96 - name: Go Build Cache 97 if: steps.go-cache-paths.outputs.go-build != '' 98 id: build-cache 99 uses: actions/cache@v2 100 with: 101 path: ${{ steps.go-cache-paths.outputs.go-build }} 102 key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} 103 restore-keys: | 104 ${{ runner.os }}-go-build- 105 # Cache go mod cache, used to speedup builds 106 - name: Go Mod Cache 107 if: steps.go-cache-paths.outputs.go-mod != '' 108 id: build-mod-cache 109 uses: actions/cache@v2 110 with: 111 path: ${{ steps.go-cache-paths.outputs.go-mod }} 112 key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} 113 restore-keys: | 114 ${{ runner.os }}-go-mod- 115 - name: Install Dependencies 116 if: steps.build-mod-cache.outputs.cache-hit != 'true' 117 run: | 118 GOARCH=arm GOOS=linux go get -t . 119 GOARCH=amd64 GOOS=linux go get -t . 120 GOARCH=amd64 GOOS=darwin go get -t . 121 - name: Build without tags (all plateforms) 122 if: matrix.tags == 'none' 123 run: | 124 GOARCH=arm GOOS=linux go build . 125 GOARCH=amd64 GOOS=linux go build . 126 GOARCH=amd64 GOOS=darwin go build . 127 - name: Test without tags 128 if: matrix.tags == 'none' 129 run: | 130 go test -race -timeout 20m 131 - name: Build with tag 132 if: matrix.tags != 'none' 133 run: | 134 go build -tags=${{ matrix.tags }} 135 - name: Test with tag 136 if: matrix.tags != 'none' 137 run: | 138 go test -race -timeout 20m -tags=${{ matrix.tags }}