-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (37 loc) · 950 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23"
- run: go test -v ./...
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-shim-rund-v1-${{ matrix.arch }} ./cmd/containerd-shim-rund-v1.go
env:
GOOS: darwin
GOARCH: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.arch }}
path: bin/*
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}