2020-08-13 17:38:50 -07:00
|
|
|
name: Generate Kicad Diffs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'hardware/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2020-08-14 17:04:28 -07:00
|
|
|
- name: Install lftp, kicad, and tk bindings
|
2020-08-13 17:38:50 -07:00
|
|
|
run: |
|
|
|
|
sudo add-apt-repository ppa:js-reynaud/kicad-5.1
|
|
|
|
sudo apt-get update
|
2020-08-14 17:04:28 -07:00
|
|
|
sudo apt-get install lftp kicad python3-tk
|
2020-08-13 17:38:50 -07:00
|
|
|
|
|
|
|
- name: Get KiCad-Diff
|
2020-08-14 17:04:28 -07:00
|
|
|
run: git clone https://github.com/chuckwagoncomputing/KiCad-Diff.git
|
2020-08-13 17:38:50 -07:00
|
|
|
|
|
|
|
- name: Set FTP variables
|
|
|
|
run: |
|
|
|
|
if [ "${{github.event_name}}" = "push" ] && [ "${{github.ref}}" = "refs/heads/master" ]; then
|
|
|
|
echo "::set-env name=RUSEFI_FTP_SERVER::${{secrets.RUSEFI_FTP_SERVER}}";
|
|
|
|
echo "::set-env name=RUSEFI_DOXYGEN_FTP_USER::${{secrets.RUSEFI_DOXYGEN_FTP_USER}}";
|
|
|
|
echo "::set-env name=RUSEFI_DOXYGEN_FTP_PASS::${{secrets.RUSEFI_DOXYGEN_FTP_PASS}}";
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Generate diffs
|
|
|
|
working-directory: ./hardware
|
|
|
|
run: bash generate_diffs.sh
|