Keine ahnung wie viel ich gemacht hab
This commit is contained in:
104
.github/workflows/workflow.yml
vendored
104
.github/workflows/workflow.yml
vendored
@ -86,18 +86,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-repository-${{ github.sha }}
|
key: ${{ runner.os }}-repository-${{ github.sha }}
|
||||||
|
|
||||||
- name: Verify that "Cache repostory" had a hit
|
- name: Verify that "Cache repostory" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-repository.outputs.cache-hit != 'true'
|
run: exit 1
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
|
||||||
if echo ${{ steps.cache-repository.outputs.cache-hit }} | grep -c "true"
|
|
||||||
then
|
|
||||||
echo "Cache repository had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache repository did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Get esp-idf release name
|
- name: Get esp-idf release name
|
||||||
id: get-esp-idf-release
|
id: get-esp-idf-release
|
||||||
@ -113,19 +103,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Install .espressif dependencies
|
- name: Install .espressif dependencies
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-espressif.outputs.cache-hit != 'true'
|
run: repository/esp-idf/install.sh
|
||||||
#run: $(realpath -s "repository/esp-idf")/install.sh
|
|
||||||
run: |
|
|
||||||
if echo ${{ steps.cache-espressif.outputs.cache-hit }} | grep -c "true"
|
|
||||||
then
|
|
||||||
echo "Cache hit - skipping esp-idf install"
|
|
||||||
else
|
|
||||||
$(realpath -s "repository/esp-idf")/install.sh
|
|
||||||
fi
|
|
||||||
# seems there is a caching issue sometimes, install.sh should be fast if already installed
|
|
||||||
#$(realpath -s "repository/esp-idf")/install.sh
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
install-sonar-scanner:
|
install-sonar-scanner:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -143,18 +122,11 @@ jobs:
|
|||||||
- name: Download and set up sonar-scanner
|
- name: Download and set up sonar-scanner
|
||||||
env:
|
env:
|
||||||
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux.zip
|
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux.zip
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-sonar-scanner.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
|
run:
|
||||||
#run: $(realpath -s "repository/esp-idf")/install.sh
|
curl -sSLo sonar-scanner.zip ${{ env.SONAR_SCANNER_DOWNLOAD_URL }}
|
||||||
run: |
|
unzip -o sonar-scanner.zip -d sonar-scanner/
|
||||||
if echo ${{ steps.cache-sonar-scanner.outputs.cache-hit }} | grep -c "true"
|
echo "$(pwd)/sonar-scanner/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
|
||||||
then
|
|
||||||
echo "Cache hit - skipping sonar-scanner download"
|
|
||||||
else
|
|
||||||
curl -sSLo sonar-scanner.zip ${{ env.SONAR_SCANNER_DOWNLOAD_URL }}
|
|
||||||
unzip -o sonar-scanner.zip -d sonar-scanner/
|
|
||||||
echo "$(pwd)/sonar-scanner/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
|
|
||||||
fi
|
|
||||||
|
|
||||||
install-sonar-build-wrapper:
|
install-sonar-build-wrapper:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -170,18 +142,11 @@ jobs:
|
|||||||
- name: Download and set up build-wrapper (for Sonar)
|
- name: Download and set up build-wrapper (for Sonar)
|
||||||
env:
|
env:
|
||||||
BUILD_WRAPPER_DOWNLOAD_URL: https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
|
BUILD_WRAPPER_DOWNLOAD_URL: https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true'
|
|
||||||
#run: $(realpath -s "repository/esp-idf")/install.sh
|
|
||||||
run: |
|
run: |
|
||||||
if echo ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit }} | grep -c "true"
|
curl -sSLo build-wrapper-linux-x86.zip ${{ env.BUILD_WRAPPER_DOWNLOAD_URL }}
|
||||||
then
|
unzip -o build-wrapper-linux-x86.zip -d sonar-build-wrapper/
|
||||||
echo "Cache hit - skipping sonar-build-wrapper download"
|
echo "$(pwd)/sonar-build-wrapper/build-wrapper-linux-x86" >> $GITHUB_PATH
|
||||||
else
|
|
||||||
curl -sSLo build-wrapper-linux-x86.zip ${{ env.BUILD_WRAPPER_DOWNLOAD_URL }}
|
|
||||||
unzip -o build-wrapper-linux-x86.zip -d sonar-build-wrapper/
|
|
||||||
echo "$(pwd)/sonar-build-wrapper/build-wrapper-linux-x86" >> $GITHUB_PATH
|
|
||||||
fi
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -202,18 +167,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-repository-${{ github.sha }}
|
key: ${{ runner.os }}-repository-${{ github.sha }}
|
||||||
|
|
||||||
- name: Verify that "Cache repostory" had a hit
|
- name: Verify that "Cache repostory" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-repository.outputs.cache-hit != 'true'
|
run: exit 1
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
|
||||||
if echo ${{ steps.cache-repository.outputs.cache-hit }} | grep -c "true"
|
|
||||||
then
|
|
||||||
echo "Cache repository had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache repository did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Get esp-idf release name
|
- name: Get esp-idf release name
|
||||||
id: get-esp-idf-release
|
id: get-esp-idf-release
|
||||||
@ -240,7 +195,6 @@ jobs:
|
|||||||
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: 0xFEEDC0DE64/setup_ccache@main
|
uses: 0xFEEDC0DE64/setup_ccache@main
|
||||||
@ -250,13 +204,11 @@ jobs:
|
|||||||
- name: Unpack ignore folder
|
- name: Unpack ignore folder
|
||||||
env:
|
env:
|
||||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
GPG_KEY: ${{ secrets.GPG_KEY }}
|
||||||
|
if: ${{ matrix.node == 'comred' || matrix.node == 'peter' || matrix.node == 'mick' }}
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.node }}" == "comred" ]] || [[ "${{ matrix.node }}" == "peter" ]]
|
echo Unpacking ignore folder...
|
||||||
then
|
cd repository
|
||||||
echo Unpacking ignore folder...
|
tools/bobby-decrypt
|
||||||
cd repository
|
|
||||||
tools/bobby-decrypt
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build firmware
|
- name: Build firmware
|
||||||
run: |
|
run: |
|
||||||
@ -299,18 +251,8 @@ jobs:
|
|||||||
key: ${{ runner.os }}-repository-history-${{ github.sha }}
|
key: ${{ runner.os }}-repository-history-${{ github.sha }}
|
||||||
|
|
||||||
- name: Verify that "Cache repostory" had a hit
|
- name: Verify that "Cache repostory" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-repository.outputs.cache-hit != 'true'
|
run: exit 1
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
|
||||||
if echo ${{ steps.cache-repository.outputs.cache-hit }} | grep -c "true"
|
|
||||||
then
|
|
||||||
echo "Cache repository had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache repository did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Get esp-idf release name
|
- name: Get esp-idf release name
|
||||||
id: get-esp-idf-release
|
id: get-esp-idf-release
|
||||||
@ -337,7 +279,6 @@ jobs:
|
|||||||
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Cache sonar-build-wrapper
|
- name: Cache sonar-build-wrapper
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -358,7 +299,6 @@ jobs:
|
|||||||
echo "Cache sonar-build-wrapper did not hit? Did the prepare step run successfully?"
|
echo "Cache sonar-build-wrapper did not hit? Did the prepare step run successfully?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Cache sonar-build-wrapper-output
|
- name: Cache sonar-build-wrapper-output
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -434,7 +374,6 @@ jobs:
|
|||||||
echo "Cache sonar-build-wrapper-output did not hit? Did the prepare step run successfully?"
|
echo "Cache sonar-build-wrapper-output did not hit? Did the prepare step run successfully?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Cache sonar-scanner
|
- name: Cache sonar-scanner
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -455,7 +394,6 @@ jobs:
|
|||||||
echo "Cache sonar-scanner did not hit? Did the prepare step run successfully?"
|
echo "Cache sonar-scanner did not hit? Did the prepare step run successfully?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Set up JDK 11 (for Sonar)
|
- name: Set up JDK 11 (for Sonar)
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
|
Reference in New Issue
Block a user