-
-
Notifications
You must be signed in to change notification settings - Fork 2
118 lines (102 loc) · 2.84 KB
/
Copy pathsrc.yml
File metadata and controls
118 lines (102 loc) · 2.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: src
on:
push:
paths:
- 'src/**'
- '**.yml'
jobs:
template:
strategy:
fail-fast: false
matrix:
example:
- "spl"
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: make-action
uses: Qful/make-action@master
with:
release: 10-2020-q4
- uses: actions/checkout@v2
with:
submodules: "recursive"
fetch-depth: 1
- name: build
if: matrix.os == 'ubuntu-latest'
working-directory: src/template
run: |
make -C ${{ matrix.example }}
- name: build
if: matrix.os == 'windows-latest'
working-directory: src/template
run: |
make -C ${{ matrix.example }} SHELL=cmd
- name: build
if: matrix.os == 'macos-latest'
working-directory: src/template
run: |
brew install make
gmake -C ${{ matrix.example }}
- uses: actions/upload-artifact@v2
with:
name: template_${{ matrix.example }}_${{ matrix.os }}
path: src/template/build
# build:
# strategy:
# fail-fast: false
# matrix:
# example:
# - "libopencm3"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: "recursive"
# fetch-depth: 1
# - name: make action
# uses: Qful/make-action@master
# with:
# release: 10-2020-q4
# - name: build libopencm3
# working-directory: src/template/libopencm3
# run: |
# chmod +x libopencm3/scripts/*
# make
# - name: upload libopencm3
# uses: actions/upload-artifact@v2
# with:
# name: libopencm3
# path: src/template/libopencm3
# demo:
# strategy:
# fail-fast: false
# matrix:
# example:
# - "grbl"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: "recursive"
# fetch-depth: 1
# - name: make action
# uses: Qful/make-action@master
# with:
# release: 10-2020-q4
# # - name: cmake demo
# # working-directory: src/demo/${{ matrix.example }}
# # run: |
# # sudo apt update -y
# # sudo apt install -y cmake
# # mkdir build && cd build
# # cmake -D CMAKE_TOOLCHAIN_FILE=../../sys/cmake/arm-none-eabi.cmake -DCMAKE_BUILD_TYPE=Debug ..
# - name: build demo
# working-directory: src/demo/${{ matrix.example }}
# run: |
# make
# - name: upload demo
# uses: actions/upload-artifact@v2
# with:
# name: demo_${{ matrix.example }}_${{ matrix.os }}
# path: src/demo/${{ matrix.example }}/build