Skip to content

Commit

Permalink
Merge pull request #857 from jannic/test-with-picotool
Browse files Browse the repository at this point in the history
Run picotool step in github action
  • Loading branch information
jannic authored Sep 30, 2024
2 parents c8d6e7a + eb14a75 commit 63af864
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/rp2040_hal_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ env:
TARGET: thumbv6m-none-eabi
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ env.TARGET }}
- name: Build
run: cd ${PACKAGE} && cargo build
- name: Install picotool
run: |
sudo apt-get install -y debian-archive-keyring
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian testing main contrib non-free' >/etc/apt/sources.list.d/debian.list"
sudo apt-get update
sudo apt-get install -y libxml2-utils picotool
- name: Test picotool
run: picotool info ${PACKAGE}/target/${TARGET}/debug/binary_info_demo -t elf -a | tee /dev/stderr | grep -q "rp2040-hal Binary Info Example"
udeps:
runs-on: ubuntu-20.04
steps:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/rp235x_hal_examples_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ env:
TARGET: thumbv8m.main-none-eabihf
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ env.TARGET }}
- name: Build
run: cd ${PACKAGE} && cargo build --target=${TARGET}
- name: Install picotool
run: |
sudo apt-get install -y debian-archive-keyring
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian testing main contrib non-free' >/etc/apt/sources.list.d/debian.list"
sudo apt-get update
sudo apt-get install -y libxml2-utils picotool
- name: Test picotool
run: picotool info ${PACKAGE}/target/${TARGET}/debug/binary_info_demo -t elf -a | tee /dev/stderr | grep -q RP2350
udeps:
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit 63af864

Please sign in to comment.