diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4100cec0dfe..91f1b676b0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,8 @@ jobs: run: go version - name: install tparse run: | - export GO111MODULE="on" && go install github.com/mfridman/tparse@v0.8.3 - - uses: actions/cache@v2.1.7 + go install github.com/mfridman/tparse@v0.8.3 + - uses: actions/cache@v3 with: path: ~/go/bin key: ${{ runner.os }}-go-tparse-binary @@ -98,7 +98,7 @@ jobs: - uses: actions/setup-go@v2.1.5 with: go-version: 1.18 - - uses: technote-space/get-diff-action@v6.0.1 + - uses: technote-space/get-diff-action@v6.1.0 with: PATTERNS: | **/**.go diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..a193f54906e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM golang:1.18 as builder + +ENV GOPATH="" +ENV GOMODULE="on" + +COPY go.mod . +COPY go.sum . + +RUN go mod download + +ADD testing testing +ADD modules modules +ADD LICENSE LICENSE + +COPY Makefile . + +RUN make build + +FROM ubuntu:20.04 + +COPY --from=builder /go/build/simd /bin/simd + +ENTRYPOINT ["simd"]