Skip to content

slot.mixed.start_hpfl_tktp_diff: #186

slot.mixed.start_hpfl_tktp_diff:

slot.mixed.start_hpfl_tktp_diff: #186

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
cross_compile_raspberry_pi_w:
name: Cross compile Raspberry Pi W
runs-on: ubuntu-latest
container:
image: ghcr.io/tyhdefu/armv6_rust_raspi_0w:1.0.0
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
target/**/build
target/**/deps
/usr/local/cargo/bin
/usr/local/cargo/registry/index
/usr/local/cargo/registry/cache
/usr/local/cargo/git/db
key: cross-compile-all-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
- run: cargo build --target arm-unknown-linux-gnueabihf --release --config target.arm-unknown-linux-gnueabihf.linker=\"/opt/cross-pi-gcc/bin/arm-linux-gnueabihf-gcc\"
- name: Cross compiled raspberry pi 0W file
uses: actions/upload-artifact@v3
with:
name: follow_heating_pi_0w
path: target/arm-unknown-linux-gnueabihf/release/follow_heating
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
target/**/build
target/**/deps
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: normal-compile-all-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
- name: Build
run: cargo build --verbose
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/London"
- name: Run tests
run: cargo test --verbose