[cpackget] add command shall download the pack and extract the license files to .Download #196 #297
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/build.yml | |
- cmd/**/*.go | |
- makefile | |
- go.mod | |
- go.sum | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
goos: [windows, linux, darwin] | |
arch: [amd64, arm64] | |
name: "${{ matrix.goos }} | ${{ matrix.arch }}" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Build | |
run: | | |
make OS=${{ matrix.goos }} ARCH=${{ matrix.arch }} build | |
- name: Upload binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cpackget-${{ matrix.goos }}-${{ matrix.arch }} | |
path: build/cpackget* | |
retention-days: 7 |