Skip to content

Add simple CI script to build binaries #12

Add simple CI script to build binaries

Add simple CI script to build binaries #12

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
arch:
- amd64
- arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.20"
- run: |
cp vendor.mod go.mod && cp vendor.sum go.sum
go build -o bin/dockerd-${{ matrix.arch }} ./cmd/dockerd
env:
GOOS: darwin
GOARCH: ${{ matrix.arch }}
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.arch }}
path: bin/*
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}