cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/compile.yml
37lines · modecode
| 1 | name: Compile |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | release: |
| 11 | types: |
| 12 | - published |
| 13 | |
| 14 | jobs: |
| 15 | build: |
| 16 | runs-on: ubuntu-latest |
| 17 | steps: |
| 18 | - name: Set up Go |
| 19 | uses: actions/setup-go@v2 |
| 20 | with: |
| 21 | go-version: 1.16.3 |
| 22 | |
| 23 | - name: Cache Go modules and build cache |
| 24 | uses: actions/cache@v2 |
| 25 | with: |
| 26 | path: | |
| 27 | ~/go/pkg/mod |
| 28 | ~/.cache/go-build |
| 29 | key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-${{ hashFiles('**/go.sum') }} |
| 30 | restore-keys: | |
| 31 | ${{ runner.os }}-main-go- |
| 32 | |
| 33 | - name: Check out code |
| 34 | uses: actions/checkout@v2 |
| 35 | |
| 36 | - name: Compile binaries |
| 37 | run: make |
| 38 | |