Skip to content

Commit

Permalink
Add simple CI to build binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Sep 27, 2023
1 parent 39e093b commit 2d7f2cc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: |
go build -o bin/buildctl-${{ matrix.arch }} ./cmd/buildctl
go build -o bin/buildkitd-${{ matrix.arch }} ./cmd/buildkitd
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 }}

0 comments on commit 2d7f2cc

Please sign in to comment.