-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (44 loc) · 1.03 KB
/
ci.yml
File metadata and controls
47 lines (44 loc) · 1.03 KB
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
40
41
42
43
44
45
46
47
name: CI
on:
- pull_request
- push
jobs:
test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
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.23"
- 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 }}