This commit is contained in:
Jason2866 2024-02-29 15:45:59 +01:00 committed by GitHub
parent db572b1125
commit 6032104cfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 10 deletions

View File

@ -25,12 +25,6 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.x' python-version: '3.x'
- name: Get and store commit SHA
run: |
COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "")
COMMIT_SHA_SHORT=${COMMIT_SHA_LONG::7}
echo "COMMIT_SHA=$COMMIT_SHA_SHORT" >> $GITHUB_ENV
- name: Install clang compiler - name: Install clang compiler
run: | run: |
sudo apt-get install -f clang sudo apt-get install -f clang
@ -123,7 +117,7 @@ jobs:
run: | run: |
COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "")
SHA=${COMMIT_SHA_LONG::7} SHA=${COMMIT_SHA_LONG::7}
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT $SHA-/g" ./tasmota/include/tasmota_version.h
- name: Run PlatformIO - name: Run PlatformIO
run: platformio run -e ${{ matrix.variant }} run: platformio run -e ${{ matrix.variant }}
- name: Upload safeboot firmware artifacts - name: Upload safeboot firmware artifacts
@ -166,7 +160,7 @@ jobs:
run: | run: |
COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "")
SHA=${COMMIT_SHA_LONG::7} SHA=${COMMIT_SHA_LONG::7}
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT $SHA-/g" ./tasmota/include/tasmota_version.h
- name: Run PlatformIO - name: Run PlatformIO
run: platformio run -e ${{ matrix.variant }} run: platformio run -e ${{ matrix.variant }}
- name: Upload firmware artifacts - name: Upload firmware artifacts
@ -223,7 +217,7 @@ jobs:
run: | run: |
COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "")
SHA=${COMMIT_SHA_LONG::7} SHA=${COMMIT_SHA_LONG::7}
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT $SHA-/g" ./tasmota/include/tasmota_version.h
- name: Run PlatformIO - name: Run PlatformIO
run: platformio run -e ${{ matrix.variant }} run: platformio run -e ${{ matrix.variant }}
- name: Upload firmware artifacts - name: Upload firmware artifacts
@ -264,7 +258,7 @@ jobs:
run: | run: |
COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "")
SHA=${COMMIT_SHA_LONG::7} SHA=${COMMIT_SHA_LONG::7}
sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT \"$SHA-\"/g" ./tasmota/include/tasmota_version.h sed -i -e "s/TASMOTA_SHA_SHORT/TASMOTA_SHA_SHORT $SHA-/g" ./tasmota/include/tasmota_version.h
- name: Run PlatformIO - name: Run PlatformIO
run: platformio run -e ${{ matrix.variant }}-${{ matrix.language }} run: platformio run -e ${{ matrix.variant }}-${{ matrix.language }}
- name: Upload language firmware artifacts - name: Upload language firmware artifacts