Skip to content

Commit d37f443

Browse files
committed
ci: fix paths in binary-size ci task
Signed-off-by: Haobo Gu <[email protected]>
1 parent 27847a1 commit d37f443

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
~/.cargo/registry/index/
5050
~/.cargo/registry/cache/
5151
~/.cargo/git/db/
52-
./example/nrf-sdc/target/
52+
./examples/nrf-sdc/target/
5353
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5454

5555
- run: rustup target add thumbv7em-none-eabihf
@@ -62,28 +62,28 @@ jobs:
6262
with:
6363
fetch-depth: '0'
6464
- name: Build new binary
65-
working-directory: ./example/nrf-sdc
65+
working-directory: ./examples/nrf-sdc
6666
run: |
6767
echo 'RESULT<<EOF' >> $GITHUB_OUTPUT
6868
cargo size --release --features nrf52840 --bin ble_bas_peripheral >> $GITHUB_OUTPUT
6969
echo 'EOF' >> $GITHUB_OUTPUT
7070
id: new-size
7171
- name: Save binary
7272
run: |
73-
mv ./example/nrf-sdc/target/thumbv7em-none-eabihf/release/example ./example/nrf-sdc/target/thumbv7em-none-eabihf/release/original.elf
73+
mv ./examples/nrf-sdc/target/thumbv7em-none-eabihf/release/ble_bas_peripheral ./examples/nrf-sdc/target/thumbv7em-none-eabihf/release/original.elf
7474
- name: If it's a PR checkout the base commit
7575
if: ${{ github.event.pull_request }}
7676
run: git checkout ${{ github.event.pull_request.base.sha }}
7777
- name: Rebuild with the base commit
7878
if: ${{ github.event.pull_request }}
79-
working-directory: ./example/nrf-sdc
79+
working-directory: ./examples/nrf-sdc
8080
run: cargo build --release --features nrf52840 --bin ble_bas_peripheral
8181
- name: Run Bloaty to compare both output files
8282
if: ${{ github.event.pull_request }}
8383
id: bloaty-comparison
8484
uses: carlosperate/bloaty-action@v1
8585
with:
86-
bloaty-args: ./example/nrf-sdc/target/thumbv7em-none-eabihf/release/original.elf -- ./example/nrf-sdc/target/thumbv7em-none-eabihf/release/example
86+
bloaty-args: ./examples/nrf-sdc/target/thumbv7em-none-eabihf/release/original.elf -- ./examples/nrf-sdc/target/thumbv7em-none-eabihf/release/ble_bas_peripheral
8787
output-to-summary: true
8888
- name: Add a PR comment with the bloaty diff
8989
if: ${{ github.event.pull_request }}

0 commit comments

Comments
 (0)