-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
## on pull_requrest | ||
|
||
set -euo pipefail | ||
|
||
# Build with all features | ||
cargo build --features ${CHIP},embassy,rt,memory-x --no-default-features --target ${TARGET} | ||
|
||
# Build without embassy | ||
cargo build --features ${CHIP},rt --no-default-features --target ${TARGET} | ||
|
||
# Build without embassy and rt | ||
cargo build --features ${CHIP} --no-default-features --target ${TARGET} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build Examples | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
branches: ["main"] | ||
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 | ||
rustup component add rust-src | ||
rustup update | ||
rustup target add riscv32imac-unknown-none-elf | ||
rustup target add riscv32imafc-unknown-none-elf | ||
rustup target add riscv32i-unknown-none-elf | ||
- name: Fetch Deps | ||
# if this is a pull request | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
mkdir -p ../ch32-data/build/ | ||
cd ../ch32-data/build/ | ||
git clone https://github.com/ch32-rs/ch32-metapac.git | ||
- name: Build Only | ||
run: ./.github/ci/build-examples.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters