Skip to content

Commit

Permalink
Update test_real_hardware.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeqingSun committed Nov 1, 2024
1 parent bf92364 commit 6ef2796
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test_real_hardware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,27 @@ jobs:
# run: echo $RUNNER_TEMP

- name: Set arduino config path variable
run: export ARDUINO_CONFIG_PATH=$RUNNER_TEMP/arduino_config
id: arduino-config-path-step
run: echo "ARDUINO_CONFIG_PATH=$RUNNER_TEMP/arduino_config" >> $GITHUB_ENV

- name: Init Arduino CLI config
env:
ARDUINO_CONFIG_PATH: ${{ steps.arduino-config-path-step.outputs.ARDUINO_CONFIG_PATH }}
run: arduino-cli config init --config-dir $ARDUINO_CONFIG_PATH

- name: Add JSON URL to Arduino CLI config
env:
ARDUINO_CONFIG_PATH: ${{ steps.arduino-config-path-step.outputs.ARDUINO_CONFIG_PATH }}
run: arduino-cli config --config-dir $ARDUINO_CONFIG_PATH add board_manager.additional_urls https://raw.githubusercontent.com/DeqingSun/ch55xduino/ch55xduino/package_ch55xduino_mcs51_index.json

- name: Update index of available boards
env:
ARDUINO_CONFIG_PATH: ${{ steps.arduino-config-path-step.outputs.ARDUINO_CONFIG_PATH }}
run: arduino-cli core --config-dir $ARDUINO_CONFIG_PATH update-index

- name: Install Ch55xduino board
env:
ARDUINO_CONFIG_PATH: ${{ steps.arduino-config-path-step.outputs.ARDUINO_CONFIG_PATH }}
run: arduino-cli core --config-dir $ARDUINO_CONFIG_PATH install CH55xDuino:mcs51

- name: get core version and copy package from repo to arduino-cli location
Expand Down

0 comments on commit 6ef2796

Please sign in to comment.