-
-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (39 loc) · 977 Bytes
/
build.yaml
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
name: Build binary
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/tinygo-org/tinygo:0.31.2
options: --user root
steps:
- name: Prepare
run: |
apt-get update
apt-get install -y make
- name: Work around CVE-2022-24765
# We're not on a multi-user machine, so this is safe.
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Dependencies
run: |
go mod tidy
- name: Build XIAO BLE Sense binary
run: make TARGET=xiao-ble build
- name: Build Nano 33 BLE binary
run: make TARGET=nano-33-ble-s140v6-uf2 build
- name: Store binaries
uses: actions/upload-artifact@v3
with:
name: binaries
path: build/*
retention-days: 14