We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baa9666 commit adc3327Copy full SHA for adc3327
.github/workflows/macos.yml
@@ -0,0 +1,33 @@
1
+name: CI
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ build:
7
+ strategy:
8
+ matrix:
9
+ arch:
10
+ - amd64
11
+ - arm64
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-go@v2
16
+ with:
17
+ go-version: "1.20"
18
+ - run: |
19
+ go build -o bin/containerd-${{ matrix.arch }} ./cmd/containerd
20
+ go build -o bin/ctr-${{ matrix.arch }} ./cmd/ctr
21
+ env:
22
+ GOOS: darwin
23
+ GOARCH: ${{ matrix.arch }}
24
+ - uses: actions/upload-artifact@v3
25
26
+ name: ${{ matrix.arch }}
27
+ path: bin/*
28
+ - uses: softprops/action-gh-release@v1
29
+ if: startsWith(github.ref, 'refs/tags/')
30
31
+ files: bin/*
32
33
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments