Skip to content

Commit

Permalink
Add simple CI to build binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Marat Radchenko <[email protected]>
  • Loading branch information
slonopotamus committed Nov 10, 2024
1 parent 9c6cfb1 commit 6398f33
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/darwin.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@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- run: |
go build -o bin/containerd-${{ matrix.arch }} ./cmd/containerd
go build -o bin/ctr-${{ matrix.arch }} ./cmd/ctr
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 6398f33

Please sign in to comment.