mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Split build scripts
This commit is contained in:
parent
edeb5779c7
commit
0bb8d20f9e
@ -31,7 +31,6 @@ jobs:
|
|||||||
- ttgo-t7-v1.5_ili9341
|
- ttgo-t7-v1.5_ili9341
|
||||||
- wt32-sc01
|
- wt32-sc01
|
||||||
- yeacreate-nscreen32
|
- yeacreate-nscreen32
|
||||||
- linux_sdl_64bits
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -55,17 +54,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
- name: Enable ESP platforms from platformio_override-template.ini
|
- name: Enable ESP32 platforms from platformio_override-template.ini
|
||||||
run: |
|
run: |
|
||||||
sed 's/; user_setups\/esp/user_setups\/esp/g' platformio_override-template.ini > platformio_override.ini
|
sed 's/; user_setups\/esp32/user_setups\/esp32/g' platformio_override-template.ini > platformio_override.ini
|
||||||
- name: Enable Linux platform from platformio_override.ini
|
# - name: Enable Linux platform from platformio_override.ini
|
||||||
run: |
|
# run: |
|
||||||
sed -i 's/; user_setups\/linux/user_setups\/linux/g' platformio_override.ini
|
# sed -i 's/; user_setups\/linux/user_setups\/linux/g' platformio_override.ini
|
||||||
mkdir -p .pio/libdeps/linux_sdl_64bits/paho/src
|
# mkdir -p .pio/libdeps/linux_sdl_64bits/paho/src
|
||||||
- name: Install SDL2 library
|
# - name: Install SDL2 library
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get update
|
# sudo apt-get update
|
||||||
sudo apt-get install libsdl2-dev
|
# sudo apt-get install libsdl2-dev
|
||||||
- name: List all files in current folder
|
- name: List all files in current folder
|
||||||
run: |
|
run: |
|
||||||
ls -la
|
ls -la
|
77
.github/workflows/build_linux.yaml
vendored
Normal file
77
.github/workflows/build_linux.yaml
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
name: Build branch
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
environments:
|
||||||
|
- linux_sdl_64bits
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
- name: Cache pip
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
- name: Cache PlatformIO
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.platformio
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
- name: Install PlatformIO
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade platformio
|
||||||
|
# - name: Enable ESP platforms from platformio_override-template.ini
|
||||||
|
# run: |
|
||||||
|
# sed 's/; user_setups\/esp/user_setups\/esp/g' platformio_override-template.ini > platformio_override.ini
|
||||||
|
- name: Enable Linux platform from platformio_override.ini
|
||||||
|
run: |
|
||||||
|
sed -i 's/; user_setups\/linux/user_setups\/linux/g' platformio_override.ini
|
||||||
|
mkdir -p .pio/libdeps/linux_sdl_64bits/paho/src
|
||||||
|
- name: Install SDL2 library
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install libsdl2-dev
|
||||||
|
- name: List all files in current folder
|
||||||
|
run: |
|
||||||
|
ls -la
|
||||||
|
- name: Cat platformio_override.ini
|
||||||
|
run: |
|
||||||
|
cat platformio_override.ini
|
||||||
|
- name: Run PlatformIO
|
||||||
|
run: pio run -e ${{ matrix.environments }}
|
||||||
|
# - name: Upload output file
|
||||||
|
# uses: actions/upload-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: ${{ matrix.environments }}
|
||||||
|
# path: build_output/firmware/*.bin
|
||||||
|
#- name: Create release and upload firmware
|
||||||
|
# run: |
|
||||||
|
# set -x
|
||||||
|
# assets=()
|
||||||
|
# for asset in build_output/firmware/*.bin; do
|
||||||
|
# assets+=("-a" "$asset")
|
||||||
|
# done
|
||||||
|
# tag_name="${GITHUB_REF##*/}"
|
||||||
|
# hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user