Increase advertising delays to lessen hci stress. #822
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master* | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| branches: | |
| - master* | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 25 | |
| env: | |
| ARM_GCC_DIR: /usr | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: firmware | |
| submodules: recursive | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get install -y gcc-arm-none-eabi | |
| - name: Install west | |
| run: pip3 install --user -U west | |
| - name: Install python dependencies of scripts | |
| run: | | |
| cd firmware/scripts | |
| pip install -r requirements.txt | |
| - name: Setup Zephyr project | |
| uses: zephyrproject-rtos/action-zephyr-setup@v1 | |
| with: | |
| app-path: firmware | |
| manifest-file-name: west_nrfsdk.yml | |
| toolchains: arm-zephyr-eabi | |
| sdk-version: 0.16.8 | |
| - name: Git user setup | |
| run: | | |
| git config --global user.email "git-patch@uhk.com" | |
| git config --global user.name "Git Patch" | |
| - name: West patch | |
| run: west patch | |
| - name: West config | |
| run: | | |
| west config build.cmake-args -- "-Wno-dev" | |
| west config build.board_warn false | |
| west config build.device_warn false | |
| - name: mcuxsdk west setup | |
| run: | | |
| west config manifest.file west_mcuxsdk.yml | |
| west update | |
| west patch | |
| - name: Use Node.js (.nvmrc) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: firmware/scripts/.nvmrc | |
| - name: Install node dependencies in scripts folder | |
| run: | | |
| cd firmware/scripts | |
| npm install | |
| - name: Create firmware tarball | |
| run: | | |
| cd firmware | |
| scripts/make-release.mjs --allowSha | |
| - name: Upload firmware artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firmware | |
| path: firmware/scripts/uhk-firmware-*.tar.gz | |
| compression-level: 0 | |
| retention-days: 90 | |
| - name: Run build-archiver | |
| uses: UltimateHackingKeyboard/build-archiver@v0.0.5 | |
| if: github.repository == 'UltimateHackingKeyboard/firmware' && github.event.pull_request.head.repo.fork == false | |
| with: | |
| FILE_PATTERN: "firmware/scripts/uhk-firmware-*.tar.gz" | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| S3_ACCESS_KEY: ${{ secrets.UHK_BUILD_ARCHIVER_AWS_ACCESS_SECRET }} | |
| S3_ACCESS_KEY_ID: ${{ secrets.UHK_BUILD_ARCHIVER_AWS_ACCESS_KEY }} | |
| S3_BUCKET: "uhk-build-archives" | |
| S3_KEY_PREFIX: "firmware/" | |
| S3_REGION: "eu-central-1" | |
| - name: Strip `v` from git tag and | |
| run: | | |
| TAG_VERSION=${{ github.ref_name }} | |
| TAG_VERSION=${TAG_VERSION#v} | |
| echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV | |
| - name: Extract changelog | |
| id: changelog | |
| if: github.ref_type == 'tag' | |
| env: | |
| VERSION: ${{ env.TAG_VERSION }} | |
| run: | | |
| cd firmware | |
| DELIMITER=$(openssl rand -hex 16) | |
| echo "content<<$DELIMITER" >> $GITHUB_OUTPUT | |
| sed -n "/^## \\[${VERSION}\\]/,/^## \\[/p" CHANGELOG.md | sed '$d' | tail -n +3 >> $GITHUB_OUTPUT | |
| echo "$DELIMITER" >> $GITHUB_OUTPUT | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: github.ref_type == 'tag' | |
| with: | |
| body: ${{ steps.changelog.outputs.content }} | |
| draft: true | |
| name: ${{ env.TAG_VERSION }} | |
| files: firmware/scripts/uhk-firmware-*.tar.gz | |
| token: ${{ secrets.GITHUB_TOKEN }} |