Skip to content

Commit

Permalink
Merge branch 'main' of github.com:flxkrmr/boiler-watch-api
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr committed Feb 9, 2024
2 parents 95ced9c + 5a9eba5 commit 3f95020
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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@v3

- name: Set up Rust for Raspberry Pi cross-compilation
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: arm-unknown-linux-gnueabihf

- name: Install dependencies for cross-compilation
run: sudo apt-get install -y gcc-arm-linux-gnueabihf

- name: Build binary for Raspberry Pi
run: cargo build --release --target=arm-unknown-linux-gnueabihf

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: boiler-watch-api
path: target/arm-unknown-linux-gnueabihf/release/boiler-watch-api

0 comments on commit 3f95020

Please sign in to comment.