-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.13 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
# scm-go-usb:ci
name: CI
on: pull_request
env:
REGISTRY: ghcr.io
jobs:
test:
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.20.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Unit Testing
run: |
make test
build-linux-amd64:
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.20.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build linux-amd64
run: |
TARGET_ARCH="linux-amd64" make all
build-linux-arm64:
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.20.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build linux-arm64
run: |
TARGET_ARCH="linux-arm64" make all
build-linux-armhf:
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/scm-go-usb-arm:v1.20.1-jammy-2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build linux-armhf
run: |
TARGET_ARCH="linux-armhf" make all