summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-07-27 16:08:08 +0700
committerhathach <[email protected]>2022-07-27 16:34:22 +0700
commit4411579ae099acbcf4559c691a0fb67b2596b52c (patch)
tree7e598647550ad02f263d597a59c0a9695374fd93 /.github/workflows
parent05ccd6c32b60994634add3b4b867870dab27aca5 (diff)
ci update
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test_hardware.yml23
1 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml
index 1470effd4..b5e0831d4 100644
--- a/.github/workflows/test_hardware.yml
+++ b/.github/workflows/test_hardware.yml
@@ -15,33 +15,38 @@ jobs:
runs-on: [self-hosted, Linux, ARM64]
steps:
- - name: Prepare workspace
+ - name: Clean workspace
run: |
echo "Cleaning up previous run"
rm -rf "${{ github.workspace }}"
mkdir -p "${{ github.workspace }}"
- echo "Create flash.sh"
+
+ - name: Download rp2040 Artifacts
+ uses: dawidd6/action-download-artifact@v2
+ with:
+ workflow: build_arm.yml
+ name: rp2040
+
+ - name: Create flash.sh
+ #working-directory: ${{github.workspace}}
+ run: |
touch flash.sh
chmod +x flash.sh
- echo >> flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"'
+ echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"'
echo >> flash.sh '"Waiting for enumeration (500 ms for reset, 5s for enumeration)"'
echo >> flash.sh 'sleep 0.5'
echo >> flash.sh 'SECONDS=0'
echo >> flash.sh 'while (! lsusb | grep "cafe:") && [ $SECONDS -le 5 ] ; do : ; done'
- - name: Download rp2040 Artifacts
- uses: dawidd6/action-download-artifact@v2
- with:
- workflow: build_arm.yml
- name: rp2040
-
- name: Test cdc_dual_ports
+ #working-directory: ${{github.workspace}}
run: |
./flash_sh cdc_dual_ports
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
test -e /dev/ttyACM2 && echo "ttyACM2 exists"
- name: Test cdc_msc
+ #working-directory: ${{github.workspace}}
run: |
./flash.sh cdc_msc
test -e /dev/ttyACM1 && echo "ttyACM1 exists"