Skip to content

Commit

Permalink
Merge branch 'main' of github.com:RGGH/mif
Browse files Browse the repository at this point in the history
  • Loading branch information
RGGH committed Nov 13, 2024
2 parents 30721cd + 078deef commit f8fd728
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cross_comp_pi5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust Cross Compile for Raspberry Pi 5 (ARM64)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
component: rustfmt

- name: Install cross
run: cargo install cross

- name: Build for ARM64 (Raspberry Pi 5)
run: cross build --target aarch64-unknown-linux-gnu --release

- name: Upload artifact for Raspberry Pi
uses: actions/upload-artifact@v3
with:
name: pi-build
path: target/aarch64-unknown-linux-gnu/release/mif

22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![image](https://github.com/user-attachments/assets/841e855f-37fc-4941-a779-e6fe92fbdd1c)

0 comments on commit f8fd728

Please sign in to comment.