Skip to content

Commit 51a5e62

Browse files
committed
[PIO] Disable PIO build
Fix variant header changes does not work aven if `VARIANT_H` is added to the 'extra_flags'. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 69beb6d commit 51a5e62

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/actions/pio-build/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/pl
1313
}
1414

1515
# Fix for variant path change while not updated in PIO
16-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F7xx/REMRAM_V1'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
16+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F7xx/REMRAM_V1'; data['build']['extra_flags'] = '-DSTM32F765xx -DVARIANT_H=variant_REMRAM_V1.h'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
1717
exit 1
1818
}
19-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F1xx/PILL_F103XX'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
19+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F1xx/PILL_F103XX'; data['build']['extra_flags'] = '-DSTM32F1 -DSTM32F103xB -DVARIANT_H=variant_PILL_F103XX.h'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
2020
exit 1
2121
}
2222

.github/workflows/Continuous-Integration.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
run: |
6767
cat ${{ steps.Compile.outputs.compile-result }}
6868
exit 1
69-
pio_build:
70-
runs-on: ubuntu-latest
71-
name: PlatformIO test
72-
steps:
73-
# First of all, clone the repo using the checkout action.
74-
- name: Checkout
75-
uses: actions/checkout@master
69+
# pio_build:
70+
# runs-on: ubuntu-latest
71+
# name: PlatformIO test
72+
# steps:
73+
# # First of all, clone the repo using the checkout action.
74+
# - name: Checkout
75+
# uses: actions/checkout@master
7676

77-
- name: PlatformIO
78-
id: Compile
79-
uses: ./.github/actions/pio-build
77+
# - name: PlatformIO
78+
# id: Compile
79+
# uses: ./.github/actions/pio-build

0 commit comments

Comments
 (0)