Switch from Travis CI to GH Actions

This commit is contained in:
Martin Jäger
2021-05-26 17:31:47 +02:00
parent 6ab9fd9dc7
commit f821bb7412
3 changed files with 56 additions and 34 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Documentation
on:
push:
branches: [ main ]
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.1.0
with:
doxyfile-path: ./Doxyfile
working-directory: .
- name: GH Pages Deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: gh-pages
+28
View File
@@ -0,0 +1,28 @@
name: PlatformIO CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -U platformio
platformio platform install native
platformio update
- name: Run trailing white space check with git
run: |
git diff --check `git rev-list HEAD | tail -n 1`..
- name: Run PlatformIO build tests
run: |
bash scripts/check.sh
-34
View File
@@ -1,34 +0,0 @@
language: python
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
cache:
directories:
- "~/.platformio"
env:
- PLATFORMIO_CI_SRC=src
install:
- pip install wheel
- pip install -U platformio
- platformio platform install native
- platformio update
addons:
apt:
packages:
- doxygen
script:
- bash scripts/check.sh
- doxygen Doxyfile
deploy:
provider: pages
skip_cleanup: true
local_dir: html
github_token: $GH_REPO_TOKEN
on:
repo: LibreSolar/charge-controller-firmware
branch: main