Skip to content

Initial CI/CD #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/rust_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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: Install ARM GCC
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: "11.2-2022.02"

- name: Install packages
run: |
rustup component add llvm-tools-preview
rustup target add thumbv7em-none-eabihf
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: |
cargo build
cargo size
cargo build --release
cargo size --release