Skip to content
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

CI: init build #1

Merged
merged 2 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI build

on:
push:
branches: ["master"]
paths-ignore:
- "*.md"
pull_request:
branches: ["master"]
paths-ignore:
- "*.md"

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use nightly Rust
run: |
rustup default nightly-2024-06-12
rustup component add rust-src
rustup target add riscv32imafc-unknown-none-elf
- name: Fetch Deps
# if this is a pull request
if: github.event_name == 'pull_request'
run: |
mkdir -p ../hpm-data/build/
cd ../hpm-data/build/
git clone https://github.com/hpmicro-rs/hpm-metapac.git
- name: Build Only
run: cargo build --release --examples
1 change: 1 addition & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![macro_use]
#![allow(unused)]

macro_rules! peri_trait {
(
Expand Down
2 changes: 2 additions & 0 deletions src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod hpm53 {
}

fn set_clock(cfg: ClockConfig) {
let _ = cfg;
unreachable!()
}
}
Expand All @@ -24,6 +25,7 @@ mod hpm53 {
crate::sysctl::CLK_24M
}
fn set_clock(cfg: ClockConfig) {
let _ = cfg;
unreachable!()
}
}
Expand Down
1 change: 0 additions & 1 deletion src/uart/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ fn blocking_flush(info: &Info) -> Result<(), Error> {

fn reconfigure(info: &Info, kernel_clock: Hertz, config: &Config) -> Result<(), ConfigError> {
info.interrupt.disable();
let r = info.regs;

configure(info, kernel_clock, config, true, true)?;

Expand Down
Loading