forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (57 loc) · 1.78 KB
/
build_s6.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
#
# build-s6.yml
# Build and push the fw to a WebDAV server
#
name: Build for Fysetc S6
on:
push:
branches:
- leo_1S_S6_btt_mini
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
jobs:
build_fw:
name: Build for Fysetc S6
runs-on: ubuntu-latest
steps:
- name: Set Time Zone
uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Prague"
- name: Check out the PR
uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Select Python 3.7
uses: actions/setup-python@v4
with:
python-version: '3.7' # 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/develop.zip
platformio update
- name: Build the FW
run: |
pio run -j7
- name: Upload the fw
run: |
curl --user "${{ secrets.DAV_USER }}:${{ secrets.DAV_PASS }}" -T ".pio/build/FYSETC_S6_8000/firmware.bin" "${{ secrets.DAV_SERVER }}/${{ secrets.DAV_PATH }}/firmware_`date +%d_%m_%y_%H_%M`_1S_S6_btt_mini.bin" --anyauth
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: firmware_btt_mini.bin
path: .pio/build/FYSETC_S6_8000/firmware.bin