updated github ci #604
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.5 | |
- name: Build | |
run: | | |
pushd cmcd | |
make | |
popd | |
pushd testtool | |
make | |
popd | |
- name: Vet Check | |
run: go vet ./... | |
- name: Format Check | |
run: go fmt ./... | |
- name: Static Check | |
uses: dominikh/[email protected] | |
with: | |
version: "latest" | |
install-go: false | |
- name: Misspell Check | |
run: | | |
go install github.com/client9/misspell/cmd/misspell@latest | |
misspell . | |
- name: Test | |
run: go test ./... | |
- name: "Upload cmcd" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cmcd | |
path: cmcd/cmcd | |
- name: "Upload testtool" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: testtool | |
path: testtool/testtool | |
- name: "Upload cmc-converter" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cmc-converter | |
path: tools/cmc-conveter/cmc-converter | |
- name: "Upload cmc-signing-tool" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cmc-signing-tool | |
path: tools/signing-tool/signing-tool | |