Skip to content

Commit 6c70a49

Browse files
authored
Work CI-CD
- Fix target name for FEATHER_S2. ***NO_CI***
1 parent 75ce2fd commit 6c70a49

File tree

1 file changed

+89
-89
lines changed

1 file changed

+89
-89
lines changed
+89-89
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
name: Smoketest Dockerfile builds for selected targets
2-
3-
on:
4-
pull_request:
5-
paths:
6-
- '.devcontainer/**/*'
7-
- '.github/workflows/*'
8-
9-
jobs:
10-
build-target:
11-
strategy:
12-
fail-fast: false # Continues to build other targets in the matrix, even if one fails.
13-
14-
matrix: # Add the target and build type you wish to generate firmware for:
15-
include: [
16-
{ target: SL_STK3701A, build-type: Debug, container: AzureRTOS},
17-
{ target: SL_STK3701A, build-type: Debug, container: All},
18-
{ target: ST_STM32F769I_DISCOVERY, build-type: Debug, container: ChibiOS },
19-
{ target: ST_STM32F769I_DISCOVERY, build-type: Debug, container: All },
20-
{ target: M5Core2, build-type: Debug, container: ESP32 },
21-
{ target: ESP_WROVER_KIT, build-type: Debug, container: ESP32 },
22-
{ target: FEATHER_S2, build-type: Debug, container: ESP32 },
23-
{ target: ESP32_S3, build-type: Debug, container: ESP32 },
24-
{ target: ESP32_C3, build-type: Debug, container: ESP32 },
25-
{ target: ESP32_C6_THREAD, build-type: Debug, container: ESP32 },
26-
{ target: ESP32_H2_THREAD, build-type: Debug, container: ESP32 },
27-
{ target: NXP_MIMXRT1060_EVK, build-type: Debug, container: FreeRTOS-NXP },
28-
{ target: NXP_MIMXRT1060_EVK, build-type: Debug, container: All },
29-
{ target: TI_CC1352R1_LAUNCHXL, build-type: Debug, container: TI, radio-freq: 915 },
30-
{ target: TI_CC1352R1_LAUNCHXL, build-type: Debug, container: All, radio-freq: 915 },
31-
]
32-
33-
runs-on: ubuntu-latest
34-
35-
steps:
36-
- uses: actions/checkout@v4
37-
with:
38-
submodules: true
39-
40-
- name: Free Disk Space (Ubuntu)
41-
uses: jlumbroso/free-disk-space@main
42-
with:
43-
# this might remove tools that are actually needed,
44-
# when set to "true" but frees about 6 GB
45-
tool-cache: true
46-
large-packages: false
47-
48-
- name: Update repo submodules
49-
run: |
50-
git submodule update --init
51-
52-
- name: Adjust config templates for a devcontainer
53-
run: |
54-
# Move into the config directory
55-
pushd config
56-
57-
# Rename the templates
58-
mv user-prefs.TEMPLATE.json user-prefs.json
59-
mv user-tools-repos.TEMPLATE.json user-tools-repos.json
60-
61-
# Adjust the file content for a valid radio frequency (TI targets)
62-
sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
63-
64-
# Adjust the file content for a devcontainer
65-
sed -i -- 's|"name": "user-tools-repos-container"|"name": "user-tools-repos"|g' user-tools-repos.json
66-
67-
# Move out of the config directory
68-
popd
69-
70-
- name: Adjust devcontainer.json for ${{ matrix.container }} source
71-
run: |
72-
# Move into the .devcontainer directory
73-
pushd .devcontainer/${{ matrix.container }}
74-
75-
# Target the dockerfile source.
76-
sed -i -- 's|"dockerFile": "Dockerfile.${{ matrix.container }}"|"dockerFile": "Dockerfile.${{ matrix.container }}.SRC"|g' devcontainer.json
77-
78-
# Move out of the .devcontainer directory
79-
popd
80-
81-
- name: Build ${{ matrix.target }} ${{ matrix.build-type }} Firmware
82-
uses: devcontainers/[email protected]
83-
with:
84-
configFile: ./.devcontainer/${{ matrix.container }}/devcontainer.json
85-
push: never
86-
runCmd: |
87-
# Build target:
88-
cmake --preset=${{ matrix.target }} -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
89-
cmake --build build
1+
name: Smoketest Dockerfile builds for selected targets
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.devcontainer/**/*'
7+
- '.github/workflows/*'
8+
9+
jobs:
10+
build-target:
11+
strategy:
12+
fail-fast: false # Continues to build other targets in the matrix, even if one fails.
13+
14+
matrix: # Add the target and build type you wish to generate firmware for:
15+
include: [
16+
{ target: SL_STK3701A, build-type: Debug, container: AzureRTOS},
17+
{ target: SL_STK3701A, build-type: Debug, container: All},
18+
{ target: ST_STM32F769I_DISCOVERY, build-type: Debug, container: ChibiOS },
19+
{ target: ST_STM32F769I_DISCOVERY, build-type: Debug, container: All },
20+
{ target: M5Core2, build-type: Debug, container: ESP32 },
21+
{ target: ESP_WROVER_KIT, build-type: Debug, container: ESP32 },
22+
{ target: ESP32_S2_USB, build-type: Debug, container: ESP32 },
23+
{ target: ESP32_S3, build-type: Debug, container: ESP32 },
24+
{ target: ESP32_C3, build-type: Debug, container: ESP32 },
25+
{ target: ESP32_C6_THREAD, build-type: Debug, container: ESP32 },
26+
{ target: ESP32_H2_THREAD, build-type: Debug, container: ESP32 },
27+
{ target: NXP_MIMXRT1060_EVK, build-type: Debug, container: FreeRTOS-NXP },
28+
{ target: NXP_MIMXRT1060_EVK, build-type: Debug, container: All },
29+
{ target: TI_CC1352R1_LAUNCHXL, build-type: Debug, container: TI, radio-freq: 915 },
30+
{ target: TI_CC1352R1_LAUNCHXL, build-type: Debug, container: All, radio-freq: 915 },
31+
]
32+
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
submodules: true
39+
40+
- name: Free Disk Space (Ubuntu)
41+
uses: jlumbroso/free-disk-space@main
42+
with:
43+
# this might remove tools that are actually needed,
44+
# when set to "true" but frees about 6 GB
45+
tool-cache: true
46+
large-packages: false
47+
48+
- name: Update repo submodules
49+
run: |
50+
git submodule update --init
51+
52+
- name: Adjust config templates for a devcontainer
53+
run: |
54+
# Move into the config directory
55+
pushd config
56+
57+
# Rename the templates
58+
mv user-prefs.TEMPLATE.json user-prefs.json
59+
mv user-tools-repos.TEMPLATE.json user-tools-repos.json
60+
61+
# Adjust the file content for a valid radio frequency (TI targets)
62+
sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
63+
64+
# Adjust the file content for a devcontainer
65+
sed -i -- 's|"name": "user-tools-repos-container"|"name": "user-tools-repos"|g' user-tools-repos.json
66+
67+
# Move out of the config directory
68+
popd
69+
70+
- name: Adjust devcontainer.json for ${{ matrix.container }} source
71+
run: |
72+
# Move into the .devcontainer directory
73+
pushd .devcontainer/${{ matrix.container }}
74+
75+
# Target the dockerfile source.
76+
sed -i -- 's|"dockerFile": "Dockerfile.${{ matrix.container }}"|"dockerFile": "Dockerfile.${{ matrix.container }}.SRC"|g' devcontainer.json
77+
78+
# Move out of the .devcontainer directory
79+
popd
80+
81+
- name: Build ${{ matrix.target }} ${{ matrix.build-type }} Firmware
82+
uses: devcontainers/[email protected]
83+
with:
84+
configFile: ./.devcontainer/${{ matrix.container }}/devcontainer.json
85+
push: never
86+
runCmd: |
87+
# Build target:
88+
cmake --preset=${{ matrix.target }} -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
89+
cmake --build build

0 commit comments

Comments
 (0)