mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Try running with cargo-binutils
This commit is contained in:
parent
71677b3170
commit
82220d21f7
1 changed files with 23 additions and 16 deletions
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
|
@ -167,6 +167,7 @@ jobs:
|
||||||
toolchain: ${{ matrix.toolchain }}
|
toolchain: ${{ matrix.toolchain }}
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
override: true
|
override: true
|
||||||
|
components: llvm-tools-preview
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
use-cross: false
|
use-cross: false
|
||||||
|
@ -180,6 +181,13 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: -p homogeneous --examples --target=${{ matrix.target }}
|
args: -p homogeneous --examples --target=${{ matrix.target }}
|
||||||
|
|
||||||
|
- name: cargo install cargo-binutils
|
||||||
|
uses: actions-rs/install@v0.1
|
||||||
|
with:
|
||||||
|
crate: cargo-binutils
|
||||||
|
version: latest
|
||||||
|
use-tool-cache: true
|
||||||
|
|
||||||
- name: Install QEMU
|
- name: Install QEMU
|
||||||
if: steps.cache-qemu-binary.outputs.cache-hit != 'true'
|
if: steps.cache-qemu-binary.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
@ -192,18 +200,18 @@ jobs:
|
||||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||||
run: echo "::add-path::${GITHUB_WORKSPACE}/qemu"
|
run: echo "::add-path::${GITHUB_WORKSPACE}/qemu"
|
||||||
|
|
||||||
- name: Setup arm-none-eabi-gcc
|
#- name: Setup arm-none-eabi-gcc
|
||||||
if: steps.cache-arm-none-eabi-gcc.outputs.cache-hit != 'true'
|
#if: steps.cache-arm-none-eabi-gcc.outputs.cache-hit != 'true'
|
||||||
uses: fiam/arm-none-eabi-gcc@v1
|
#uses: fiam/arm-none-eabi-gcc@v1
|
||||||
with:
|
#with:
|
||||||
directory: 'arm-none-eabi-gcc' # Place it locally so it is possible to cache
|
#directory: 'arm-none-eabi-gcc' # Place it locally so it is possible to cache
|
||||||
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
|
#release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
|
||||||
|
|
||||||
- name: Setup add arm-none-eabi-gcc to PATH
|
#- name: Setup add arm-none-eabi-gcc to PATH
|
||||||
if: steps.cache-arm-none-eabi-gcc.outputs.cache-hit == 'true'
|
#if: steps.cache-arm-none-eabi-gcc.outputs.cache-hit == 'true'
|
||||||
env:
|
#env:
|
||||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
#GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||||
run: echo "::add-path::${GITHUB_WORKSPACE}/arm-none-eabi-gcc/bin"
|
#run: echo "::add-path::${GITHUB_WORKSPACE}/arm-none-eabi-gcc/bin"
|
||||||
|
|
||||||
- name: Run-pass tests
|
- name: Run-pass tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -237,7 +245,8 @@ jobs:
|
||||||
else
|
else
|
||||||
cargo $COMMAND $CARGO_FLAGS
|
cargo $COMMAND $CARGO_FLAGS
|
||||||
fi
|
fi
|
||||||
arm-none-eabi-objcopy -O ihex target/${{ matrix.target }}/$BUILD_MODE/examples/$EXAMPLE ci/builds/${EXAMPLE}_${FEATURES_STR}${BUILD_MODE}_${BUILD_NUM}.hex
|
#arm-none-eabi-objcopy -O ihex target/${{ matrix.target }}/$BUILD_MODE/examples/$EXAMPLE ci/builds/${EXAMPLE}_${FEATURES_STR}${BUILD_MODE}_${BUILD_NUM}.hex
|
||||||
|
cargo objcopy $CARGO_FLAGS -- -O ihex ci/builds/${EXAMPLE}_${FEATURES_STR}${BUILD_MODE}_${BUILD_NUM}.hex
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p ci/builds
|
mkdir -p ci/builds
|
||||||
|
@ -282,15 +291,13 @@ jobs:
|
||||||
$td/pool.run
|
$td/pool.run
|
||||||
grep 'foo(0x2' $td/pool.run
|
grep 'foo(0x2' $td/pool.run
|
||||||
grep 'bar(0x2' $td/pool.run
|
grep 'bar(0x2' $td/pool.run
|
||||||
arm-none-eabi-objcopy -O ihex target/${{ matrix.target }}/debug/examples/$ex \
|
cargo objcopy --example $ex --target ${{ matrix.target }} --features __v7 -- -O ihex ci/builds/${ex}___v7_debug_1.hex
|
||||||
ci/builds/${ex}___v7_debug_1.hex
|
|
||||||
|
|
||||||
cargo run --example $ex --target ${{ matrix.target }} --features __v7 --release >\
|
cargo run --example $ex --target ${{ matrix.target }} --features __v7 --release >\
|
||||||
$td/pool.run
|
$td/pool.run
|
||||||
grep 'foo(0x2' $td/pool.run
|
grep 'foo(0x2' $td/pool.run
|
||||||
grep 'bar(0x2' $td/pool.run
|
grep 'bar(0x2' $td/pool.run
|
||||||
arm-none-eabi-objcopy -O ihex target/${{ matrix.target }}/release/examples/$ex \
|
cargo objcopy --example $ex --target ${{ matrix.target }} --features __v7 --release -- -O ihex ci/builds/${ex}___v7_release_1.hex
|
||||||
ci/builds/${ex}___v7_release_1.hex
|
|
||||||
|
|
||||||
rm -rf $td
|
rm -rf $td
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue