From 1d83736209f4d264efbee72a1807ed9c78a1db34 Mon Sep 17 00:00:00 2001 From: Emman Date: Thu, 28 Apr 2022 13:43:44 +0800 Subject: [PATCH] add branch ci --- .github/workflows/sm3_sm4_ni.ci.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sm3_sm4_ni.ci.yml diff --git a/.github/workflows/sm3_sm4_ni.ci.yml b/.github/workflows/sm3_sm4_ni.ci.yml new file mode 100644 index 0000000..95dc5a4 --- /dev/null +++ b/.github/workflows/sm3_sm4_ni.ci.yml @@ -0,0 +1,39 @@ +name: ci + +on: + push: + branches: [ sm3_sm4_ni ] + pull_request: + branches: [ sm3_sm4_ni ] + +jobs: + + build: + runs-on: ubuntu-latest + strategy: + matrix: + goVer: ['1.15', '1.16', '1.17'] + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.goVer }} + + - name: Setup Environment + run: | + echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + + - name: Module cache + uses: actions/cache@v2.1.7 + env: + cache-name: go-mod-cache + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} + + - name: Test + run: go test -v ./...