forked from thewh1teagle/xiaomi-1080-360-motor-control
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (43 loc) · 1.24 KB
/
ccpp.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
name: C/C++ CI
on:
push:
branches:
- '*'
env:
isNightly: ${{ contains(github.ref, 'dev') }}
isFinalRelease: ${{ contains(github.ref, 'master') }}
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Get uClibc toolchain
uses: i3h/download-release-asset@v1
with:
owner: telmomarques
repo: uClibc-toolchain
tag: latest
file: toolchain.tar
- name: Install uClibc ARM cross compiler
run: tar -xf toolchain.tar
- name: Compile
run: make clean && make CROSSCC=output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc
- name: Release Candidate
uses: marvinpinto/action-automatic-releases@latest
if: env.isNightly == 'true'
with:
automatic_release_tag: latest-rc
files: dist/motord
prerelease: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: latest-rc
- name: Release
uses: marvinpinto/action-automatic-releases@latest
if: env.isFinalRelease == 'true'
with:
automatic_release_tag: stable
files: dist/motord
prerelease: false
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: stable