Skip to content

Commit

Permalink
Merge pull request #12 from Embedded-System-Lovers/add_cmake_build_to_ci
Browse files Browse the repository at this point in the history
Add cmake build to ci
  • Loading branch information
ckormanyos authored Dec 12, 2022
2 parents 98e419c + cd35475 commit c90ca44
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/RED-V_SiFive_RISC-V_FE310_SoC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,23 @@ jobs:
run: |
PATH=./riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin:$PATH
bash ./Rebuild.sh
ls ./Output/Blinky_RedV_FE310.hex
ls -la ./Output/Blinky_RedV_FE310.hex
target-gcc-riscv64-unknown-elf-cmake:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: update-tools
run: |
wget --no-check-certificate https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
tar -xvzf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
- name: target-riscv64-unknown-elf
run: |
mkdir -p Output && cd Output
PATH=../riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin:$PATH
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-unix.cmake .. && make
ls -la ./Blinky_RedV_FE310.hex
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ in the usual `*nix` way.

## Continuous Integration

CI runs on pushes and pull-requests with a simple
build and result verification on `ubuntu-latest`
CI runs on pushes and pull-requests with simple
build(s) including result verification on `ubuntu-latest`
using GutHub Actions.

0 comments on commit c90ca44

Please sign in to comment.