forked from electro-smith/DaisySP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request electro-smith#107 from electro-smith/ci/migrate_to…
…_gha Migrate CI to Github Actions
- Loading branch information
Showing
18 changed files
with
221 additions
and
190 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,35 @@ | ||
# Action Workflows | ||
|
||
Github actions for CI/CD | ||
|
||
## Build | ||
|
||
Builds libdaisy validating the source code builds with no errors. | ||
|
||
## Style | ||
|
||
Runs a style check using clang-format to make sure that all files within the src/ hierarchy conform to the proper style. | ||
|
||
This can be tested locally by running: | ||
|
||
```bash | ||
./ci/run-clang-format.py -r src | ||
``` | ||
|
||
## Build Docs | ||
|
||
This runs steps to generate the documentation to confirm there are no errors. | ||
|
||
This runs on PRs and merges to master. | ||
|
||
Worth mentioning that this **does not fail on warnings** and is mostly provided to give useful feedback to see what doesn't have documentation. | ||
|
||
## Deploy Docs | ||
|
||
This runs the same build step as [Build Docs](#build-docs) | ||
|
||
This is only run when something is pushed to master, rebuilds the docuemntation using Doxygen, and deploys it to the gh-pages branch. | ||
|
||
This does not build and push the pdf yet... | ||
|
||
View the documentation [here](https://electro-smith.github.io/libDaisy/index.html) |
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,19 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: arm-none-eabi-gcc | ||
uses: fiam/arm-none-eabi-gcc@v1 | ||
with: | ||
release: '9-2019-q4' | ||
- name: Build Library | ||
run: make -j |
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 @@ | ||
name: Build Documentation | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Documentation | ||
uses: mattnotmitt/doxygen-action@v1.2.1 |
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,36 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Documentation | ||
uses: mattnotmitt/doxygen-action@v1.2.1 | ||
- name: Deploy Web | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./doc/html | ||
# Build PDF currently doesn't work. So no need for Latex | ||
# with: | ||
# enable-latex: true | ||
# - name: Build PDF | ||
# run: | | ||
# cwd=$(pwd) | ||
# cd ./doc/latex | ||
# make pdf > /dev/null | ||
# cd $cwd | ||
# mv doc/latex/refman.pdf doc/libdaisy_reference.pdf | ||
# Since BulidPDF doesn't work yet, no need to try to add/commit/push | ||
# - name: Deploy PDF | ||
# uses: EndBug/add-and-commit@v6 | ||
# with: | ||
# add: 'doc/libdaisy_reference.pdf' | ||
# message: 'automated: updated PDF documentation' | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,19 @@ | ||
name: Style | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: DoozyX/clang-format-lint-action@v0.11 | ||
with: | ||
source: 'modules' | ||
extensions: 'h,cpp' | ||
clangFormatVersion: 10 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.