forked from frealmyr/3d-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 984 Bytes
/
marlin-build.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
name: Build Marlin Firmware
on:
push:
branches:
- master
#paths:
# - 'Firmware/Configuration/**.h'
jobs:
build_and_push:
name: Compile and Push Firmware
runs-on: ubuntu-latest
env:
BOARD: LPC1768
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Compile firmware
run: |
docker run \
-u root:root \
-e BOARD \
-e USE_TAG=2.1.2.2 \
-v $(pwd)/Firmware/Builds:/home/platformio/build \
-v $(pwd)/Firmware/Configuration:/home/platformio/CustomConfiguration \
frealmyr/marlin-build:latest
- name: Push firmware
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Compiled firmware"
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"