forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): Properly west init new tmp dir.
- Loading branch information
1 parent
202012f
commit a566f31
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,8 +66,9 @@ jobs: | |
shield: ${{ matrix.shield }} | ||
artifact_name: ${{ matrix.artifact-name }} | ||
run: | | ||
echo "tmp_dir=$(mktemp -d)" >> $GITHUB_ENV | ||
echo "tmp_config_dir=${{ env.tmp_dir }}/config/" >> $GITHUB_ENV | ||
export new_tmp_dir=$(mktemp -d) | ||
echo "tmp_dir=${new_tmp_dir}" >> $GITHUB_ENV | ||
echo "tmp_config_dir=${new_tmp_dir}/config" >> $GITHUB_ENV | ||
if [ -e zephyr/module.yml ]; then | ||
export zmk_load_arg=" -DZMK_EXTRA_MODULES='${GITHUB_WORKSPACE}'" | ||
fi | ||
|
@@ -78,8 +79,9 @@ jobs: | |
echo "display_name=${shield:+$shield - }${board}" >> $GITHUB_ENV | ||
echo "artifact_name=${artifact_name:-${shield:+$shield-}${board}-zmk}" >> $GITHUB_ENV | ||
- name: Move config files to isolate temporary directory | ||
run: mv ${{ input.config_path }}/* "${{ env.tmp_config_dir }}/"" | ||
- name: Copy config files to isolated temporary directory | ||
run: cp -R ${{ inputs.config_path }}/* "${{ env.tmp_config_dir }}/" | ||
|
||
- name: Cache west modules | ||
uses: actions/[email protected] | ||
continue-on-error: true | ||
|
@@ -99,7 +101,7 @@ jobs: | |
${{ runner.os }}- | ||
- name: West Init | ||
run: west init -l "${{ inputs.config_path }}" | ||
run: west init -l "${{ env.tmp_config_dir }}" | ||
|
||
- name: West Update | ||
run: west update | ||
|