Skip to content

Commit

Permalink
troubleshooting pipeline directories"
Browse files Browse the repository at this point in the history
  • Loading branch information
280Zo committed Aug 5, 2024
1 parent 088b8b2 commit 1040e09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ jobs:
# Add any dependencies here
- name: Generate Colemak DH keymap
run: |
python scripts/convert_keymap.py -c q2c --in-path "$GITHUB_WORKSPACE/config/charybdis_qwerty.keymap"
- name: Move keymaps to the keymap directory
run: |
ls -lR "$GITHUB_WORKSPACE"
cd "$GITHUB_WORKSPACE/config/"
mv *.keymap "$GITHUB_WORKSPACE/config/boards/shields/charybdis-mini-wireless/keymaps/"
ls -lR "$GITHUB_WORKSPACE"
python scripts/convert_keymap.py \
-c q2c \
--in-path "$GITHUB_WORKSPACE/config/charybdis_qwerty.keymap"
- uses: actions/upload-artifact@master
with:
name: Keymap files
path: "$GITHUB_WORKSPACE/config/boards/shields/charybdis-mini-wireless/keymaps/*"
path: "$GITHUB_WORKSPACE"/config/*.keymap

build:
needs: create-colemak-keymap
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/user_config_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,23 @@ jobs:
uses: actions/download-artifact@master
with:
name: Keymap files
path: "${{ github.workspace }}/config/boards/shields/charybdis-mini-wireless/keymaps/"
path: "${{ github.workspace }}/"

- name: Move keymaps to keymap directory
run: |
rm -f "$GITHUB_WORKSPACE/config/*.keymap
mkdir -p "$GITHUB_WORKSPACE/config/boards/shields/charybdis-mini-wireless/keymaps/"
cd "$GITHUB_WORKSPACE"
mv *.keymap "$GITHUB_WORKSPACE/config/boards/shields/charybdis-mini-wireless/keymaps/"
ls -lR "$GITHUB_WORKSPACE/config/boards/shields/charybdis-mini-wireless/keymaps/"
- name: Copy config files to isolated temporary directory
run: |
# List directory contents
if [ "${{ env.base_dir }}" != "${GITHUB_WORKSPACE}" ]; then
base_config_path="${{ env.base_dir }}/${{ inputs.config_path }}"
mkdir "$base_config_path"
cp -R "${{ inputs.config_path }}/*" "$base_config_path"/
# Remove existing keyfiles in config and board dir
rm -f "$base_config_path/*.keymap"
# Copy move active keymap to the config directory
# Copy active keymap to the config directory
cp -Rv "$base_config_path/boards/shields/charybdis-mini-wireless/keymaps/${{ matrix.keymap }}.keymap" \
"$base_config_path/"
fi
Expand Down

0 comments on commit 1040e09

Please sign in to comment.