This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
Update README.md #509
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 3 | |
matrix: | |
target: | |
- esp32-v4.4-L298-NONE | |
- esp32-v4.4-LMD18200-NONE | |
- esp32-v4.4-BTS7960B-NONE | |
- esp32-v4.4-L298-LCD | |
- esp32-v4.4-L298-OLED | |
#- esp32-v4.4-PCB | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- uses: jungwinter/split@v2 | |
id: target | |
with: | |
msg: ${{ matrix.target }} | |
separator: '-' | |
- name: Configure default pin mapping / display | |
run: | | |
echo "CONFIG_ESP32CS_${{ steps.target.outputs._2 }}=y" > sdkconfig | |
echo "CONFIG_DISPLAY_TYPE_${{ steps.target.outputs._3 }}=y" >> sdkconfig | |
- name: Build | |
uses: espressif/esp-idf-ci-action@main | |
with: | |
esp_idf_version: ${{ steps.target.outputs._1 }} | |
target: ${{ steps.target.outputs._0 }} | |
- name: Prepare Binaries | |
run: | | |
mkdir -p binaries | |
cp .github/firmwarereadme.txt binaries/readme.txt | |
cp build/ESP32CommandStation.bin binaries | |
cp build/partition_table/partition-table.bin binaries | |
cp build/ota_data_initial.bin binaries | |
cp build/bootloader/bootloader.bin binaries | |
egrep 'I2C|STATUS|FACTORY|BOOTLOADER|TWAI' sdkconfig | grep _PIN | egrep -v '^#'> binaries/pinmap.txt | |
egrep 'CONFIG_SD_SPI' sdkconfig | egrep -v '^#' >> binaries/pinmap.txt | |
egrep 'CONFIG_WIFI_SOFTAP_[SSID|PASSWORD]|CONFIG_WIFI_STATION' sdkconfig | egrep -v '^#' >> binaries/wifi.txt | |
cat .github/pinmap_${{ steps.target.outputs._2 }}.txt >> binaries/pinmap.txt | |
cat .github/adc_pinmap_${{ steps.target.outputs._0 }}.txt >> binaries/pinmap.txt | |
- name: Package binaries | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ESP32CommandStation-${{ matrix.target }} | |
path: binaries | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |