Skip to content

Commit

Permalink
Update Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr authored Nov 2, 2024
1 parent ddcc169 commit 2113f4e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 50 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/rpi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Cross-compilation Raspberry Pi

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

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

- name: Rust build and test
run: cargo test

- name: Set up cross-compilation toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: arm-unknown-linux-gnueabihf
- run: rustup target add arm-unknown-linux-gnueabihf
- run: sudo apt-get update && sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross

- name: Build cross-compilation binary
run: cargo build --release --target=arm-unknown-linux-gnueabihf

- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: boiler-watch-api_arm-linux-gnueabihf
path: target/arm-unknown-linux-gnueabihf/release/boiler-watch-api
50 changes: 0 additions & 50 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 2113f4e

Please sign in to comment.