style(ci): add empty lines for readability

This commit is contained in:
elagil 2022-04-03 18:53:37 +02:00 committed by Pete Johanson
parent 2c4ca7390b
commit 0f70f40054

View file

@ -28,14 +28,17 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install yaml2json - name: Install yaml2json
run: python3 -m pip install remarshal run: python3 -m pip install remarshal
- id: set-matrix - id: set-matrix
name: Fetch Build Matrix name: Fetch Build Matrix
run: | run: |
matrix=$(yaml2json ${{ inputs.build_matrix_path }} | jq -c .) matrix=$(yaml2json ${{ inputs.build_matrix_path }} | jq -c .)
yaml2json ${{ inputs.build_matrix_path }} yaml2json ${{ inputs.build_matrix_path }}
echo "::set-output name=matrix::${matrix}" echo "::set-output name=matrix::${matrix}"
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@ -61,8 +64,10 @@ jobs:
echo ::set-output name=extra-cmake-args::${EXTRA_CMAKE_ARGS} echo ::set-output name=extra-cmake-args::${EXTRA_CMAKE_ARGS}
echo ::set-output name=artifact-name::${ARTIFACT_NAME} echo ::set-output name=artifact-name::${ARTIFACT_NAME}
echo ::set-output name=display-name::${DISPLAY_NAME} echo ::set-output name=display-name::${DISPLAY_NAME}
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache west modules - name: Cache west modules
uses: actions/cache@v2 uses: actions/cache@v2
env: env:
@ -79,12 +84,16 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build- ${{ runner.os }}-build-
${{ runner.os }}- ${{ runner.os }}-
- name: West Init - name: West Init
run: west init -l ${{ inputs.config_path }} run: west init -l ${{ inputs.config_path }}
- name: West Update - name: West Update
run: west update run: west update
- name: West Zephyr export - name: West Zephyr export
run: west zephyr-export run: west zephyr-export
- name: West Build (${{ steps.variables.outputs.display-name }}) - name: West Build (${{ steps.variables.outputs.display-name }})
run: | run: |
west build -s zmk/app -b ${{ matrix.board }} -- -DZMK_CONFIG=${GITHUB_WORKSPACE}/${{ inputs.config_path }} ${{ steps.variables.outputs.extra-cmake-args }} ${{ matrix.cmake-args }} west build -s zmk/app -b ${{ matrix.board }} -- -DZMK_CONFIG=${GITHUB_WORKSPACE}/${{ inputs.config_path }} ${{ steps.variables.outputs.extra-cmake-args }} ${{ matrix.cmake-args }}
@ -93,8 +102,10 @@ jobs:
run: | run: |
if [ -f "build/zephyr/${{ matrix.board }}.dts.pre.tmp" ]; then cat -n build/zephyr/${{ matrix.board }}.dts.pre.tmp; fi if [ -f "build/zephyr/${{ matrix.board }}.dts.pre.tmp" ]; then cat -n build/zephyr/${{ matrix.board }}.dts.pre.tmp; fi
if [ -f "build/zephyr/zephyr.dts" ]; then cat -n build/zephyr/zephyr.dts; fi if [ -f "build/zephyr/zephyr.dts" ]; then cat -n build/zephyr/zephyr.dts; fi
- name: ${{ steps.variables.outputs.display-name }} Kconfig file - name: ${{ steps.variables.outputs.display-name }} Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$" run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename artifacts - name: Rename artifacts
run: | run: |
mkdir build/artifacts mkdir build/artifacts
@ -105,6 +116,7 @@ jobs:
then then
cp build/zephyr/zmk.${{ inputs.fallback_binary }} "build/artifacts/${{ steps.variables.outputs.artifact-name }}.${{ inputs.fallback_binary }}" cp build/zephyr/zmk.${{ inputs.fallback_binary }} "build/artifacts/${{ steps.variables.outputs.artifact-name }}.${{ inputs.fallback_binary }}"
fi fi
- name: Archive (${{ steps.variables.outputs.display-name }}) - name: Archive (${{ steps.variables.outputs.display-name }})
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: