mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-15 18:38:46 +00:00
Add groups to workflow
This commit is contained in:
parent
bfa7dc8d61
commit
1c23867400
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -62,6 +62,8 @@ jobs:
|
|||||||
- name: main
|
- name: main
|
||||||
id: variables
|
id: variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::variables"
|
||||||
|
|
||||||
if [ -n "${{ matrix.shield }}" -a "${{ matrix.shield }}" != "default" ]
|
if [ -n "${{ matrix.shield }}" -a "${{ matrix.shield }}" != "default" ]
|
||||||
then
|
then
|
||||||
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}"
|
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}"
|
||||||
@ -114,6 +116,9 @@ jobs:
|
|||||||
|
|
||||||
. "${GITHUB_WORKSPACE}/miryoku_zmk/.github/workflows/zmk"
|
. "${GITHUB_WORKSPACE}/miryoku_zmk/.github/workflows/zmk"
|
||||||
|
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::outboards"
|
||||||
if [ -n "$shield" ]
|
if [ -n "$shield" ]
|
||||||
then
|
then
|
||||||
outboards="shields/$keyboard_base boards/${{ matrix.board }}"
|
outboards="shields/$keyboard_base boards/${{ matrix.board }}"
|
||||||
@ -144,7 +149,9 @@ jobs:
|
|||||||
outboard_to=''
|
outboard_to=''
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::zmk"
|
||||||
if [ -n "${{ matrix.branches }}" -a "${{ matrix.branches }}" != 'default' ]
|
if [ -n "${{ matrix.branches }}" -a "${{ matrix.branches }}" != 'default' ]
|
||||||
then
|
then
|
||||||
artifact_build_name="$artifact_build_name branches_"`echo "${{ matrix.branches }}" | md5sum | cut -d ' ' -f 1`
|
artifact_build_name="$artifact_build_name branches_"`echo "${{ matrix.branches }}" | md5sum | cut -d ' ' -f 1`
|
||||||
@ -160,7 +167,9 @@ jobs:
|
|||||||
repo=`echo "$zmk" | cut -f 2 -d '/'`
|
repo=`echo "$zmk" | cut -f 2 -d '/'`
|
||||||
branch=`echo "$zmk" | cut -f 3- -d '/'`
|
branch=`echo "$zmk" | cut -f 3- -d '/'`
|
||||||
git clone -b "$branch" --depth 1 "https://github.com/$user/$repo.git" 'zmk'
|
git clone -b "$branch" --depth 1 "https://github.com/$user/$repo.git" 'zmk'
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::merge"
|
||||||
if [ -n "$merges" ]
|
if [ -n "$merges" ]
|
||||||
then
|
then
|
||||||
cd "${GITHUB_WORKSPACE}/zmk"
|
cd "${GITHUB_WORKSPACE}/zmk"
|
||||||
@ -180,6 +189,7 @@ jobs:
|
|||||||
git status
|
git status
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
echo "::endgroup::"
|
||||||
- name: cache
|
- name: cache
|
||||||
if: true
|
if: true
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -192,14 +202,19 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::setup"
|
||||||
cd "${GITHUB_WORKSPACE}/zmk"
|
cd "${GITHUB_WORKSPACE}/zmk"
|
||||||
west init -l app
|
west init -l app
|
||||||
west update
|
west update
|
||||||
west zephyr-export
|
west zephyr-export
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::build"
|
||||||
cd "${GITHUB_WORKSPACE}/zmk/app"
|
cd "${GITHUB_WORKSPACE}/zmk/app"
|
||||||
west build -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }} -DZMK_CONFIG="${GITHUB_WORKSPACE}/miryoku_zmk/config"
|
west build -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }} -DZMK_CONFIG="${GITHUB_WORKSPACE}/miryoku_zmk/config"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::copy"
|
||||||
for extension in "uf2"
|
for extension in "uf2"
|
||||||
do
|
do
|
||||||
file="${GITHUB_WORKSPACE}/zmk/app/build/zephyr/zmk.$extension"
|
file="${GITHUB_WORKSPACE}/zmk/app/build/zephyr/zmk.$extension"
|
||||||
@ -208,6 +223,7 @@ jobs:
|
|||||||
cp "$file" "${{ steps.variables.outputs.artifact-dir }}/${{ steps.variables.outputs.artifact-build-name }}.$extension"
|
cp "$file" "${{ steps.variables.outputs.artifact-dir }}/${{ steps.variables.outputs.artifact-build-name }}.$extension"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "::endgroup::"
|
||||||
- name: upload
|
- name: upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user