From 7a634175f34627de25f3fa8ffafdc82fccc7e823 Mon Sep 17 00:00:00 2001 From: Niket Naidu Date: Tue, 31 Jan 2023 19:27:15 -0800 Subject: [PATCH 1/3] Create rust_all.yml --- .github/workflows/rust_all.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rust_all.yml diff --git a/.github/workflows/rust_all.yml b/.github/workflows/rust_all.yml new file mode 100644 index 0000000..a833a7f --- /dev/null +++ b/.github/workflows/rust_all.yml @@ -0,0 +1,41 @@ +name: Rust - all OS CI/CD +# Projects that are supported on ubuntu, windows and macos are added here + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + CARGO_TERM_COLOR: always + +jobs: + all_os: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: Environment info + run: | + cargo --version + rustup --version + rustc --version + rustup default + + - name: Install packages + run: | + rustup target add thumbv7em-none-eabihf + cargo install cbindgen + cargo install cargo-binutils + + - name: Minimal blinky + working-directory: ${{github.workspace}}/minimal_blinky + run: | + cargo build + cargo size + cargo build --release + cargo size --release From fd8b71d9a69f34cc350f8fe80a418d0bc453c076 Mon Sep 17 00:00:00 2001 From: Niket Naidu Date: Tue, 31 Jan 2023 20:11:23 -0800 Subject: [PATCH 2/3] Install ARM GCC --- .github/workflows/rust_all.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust_all.yml b/.github/workflows/rust_all.yml index a833a7f..a1edaaa 100644 --- a/.github/workflows/rust_all.yml +++ b/.github/workflows/rust_all.yml @@ -19,12 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Environment info - run: | - cargo --version - rustup --version - rustc --version - rustup default + - name: Install ARM GCC + uses: carlosperate/arm-none-eabi-gcc-action@v1 + with: + release: "11.2-2022.02" - name: Install packages run: | @@ -32,6 +30,15 @@ jobs: cargo install cbindgen cargo install cargo-binutils + - name: Environment info + run: | + cargo --version + rustup --version + rustc --version + rustup default + arm-none-eabi-gcc -v + arm-none-eabi-ld -v + - name: Minimal blinky working-directory: ${{github.workspace}}/minimal_blinky run: | From 724bec6e96b7212a010b84d56295152d5a27e395 Mon Sep 17 00:00:00 2001 From: Niket Naidu Date: Tue, 31 Jan 2023 20:17:53 -0800 Subject: [PATCH 3/3] Update rust_all.yml --- .github/workflows/rust_all.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/rust_all.yml b/.github/workflows/rust_all.yml index a1edaaa..a9cdd3e 100644 --- a/.github/workflows/rust_all.yml +++ b/.github/workflows/rust_all.yml @@ -26,6 +26,7 @@ jobs: - name: Install packages run: | + rustup component add llvm-tools-preview rustup target add thumbv7em-none-eabihf cargo install cbindgen cargo install cargo-binutils