-
-
Notifications
You must be signed in to change notification settings - Fork 66
116 lines (98 loc) · 3.06 KB
/
ramps.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
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
name: ramps
on:
schedule:
# At 12:15 each day. No idea what time zone this is...
- cron: '15 12 * * *'
push:
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- src/configs/V1*Archim*
- src/configs/V1*Skr*
- src/configs/V1*Rambo*
- '**/*.md'
release:
types:
- published
jobs:
build:
env:
MARLIN_VERSION: ${{ matrix.branch }}
CONFIG_NAME: ${{ matrix.machine }}
V1_VERSION: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }}
name: ${{ matrix.machine }}-${{ matrix.branch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false # Allow all machines to finish building
matrix:
branch: ${{ fromJson(
github.event_name == 'schedule' && '["bugfix-2.1.x"]' ||
github.event_name == 'pull_request' && '["bugfix-2.1.x", "2.1.2.1"]' ||
'["2.1.2.1"]') }}
machine:
- V13DP_Ramps_MK8
- V1ZXY_Ramps
- V1CNC_Ramps
- V1CNC_Ramps_Dual
- V1CNC_Ramps_DualLR
steps:
# First, cancel unfinished jobs.
#- uses: technote-space/[email protected]
# Based on .github/workflows/test-builds.yml
- name: Select Python 3.x
uses: actions/[email protected]
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using semvers version range syntax.
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install PlatformIO
run: |
pip install -U https://github.com/platformio/platformio-core/archive/master.zip
platformio update
- name: Check out MarlinBuilder
uses: actions/[email protected]
- name: Check out MarlinFirmware
uses: actions/[email protected]
with:
repository: MarlinFirmware/Marlin
ref: ${{ matrix.branch }}
path: Marlin
clean: true
fetch-depth: 1
- name: Configure
run: |
src/core/config-for-machine ${{ matrix.machine }}
- name: Zip up Marlin
run: |
src/core/zip-marlin
- name: Upload src artifact
uses: actions/[email protected]
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
Marlin_*.zip
- name: Build
run: |
src/core/build-for-machine
- name: Zip up release
run: |
src/core/zip-release
- name: Upload built artifact
uses: actions/[email protected]
with:
name: ${{ matrix.machine }}-${{ matrix.branch }}
path: |
firmware*
Marlin_*.zip
- name: Upload Marlin-${{ matrix.machine }}-${{ matrix.branch }}.zip to release
if: ${{ github.event_name == 'release' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: Marlin-Release.zip
asset_name: ${{ matrix.machine }}-${{ matrix.branch }}.zip
asset_content_type: application/zip