mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
add branch ci
This commit is contained in:
parent
660d54649b
commit
1d83736209
39
.github/workflows/sm3_sm4_ni.ci.yml
vendored
Normal file
39
.github/workflows/sm3_sm4_ni.ci.yml
vendored
Normal file
@ -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 ./...
|
Loading…
x
Reference in New Issue
Block a user