2020-08-13 17:38:50 -07:00
|
|
|
name: Generate Kicad Diffs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'hardware/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 06:09:12 -07:00
|
|
|
- uses: actions/checkout@v4
|
2020-08-13 17:38:50 -07:00
|
|
|
with:
|
2023-01-29 01:43:27 -08:00
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
- name: Checkout Submodules
|
|
|
|
run: |
|
|
|
|
git submodule update --init --depth=1 hardware/rusefi_lib
|
2020-08-13 17:38:50 -07:00
|
|
|
|
2023-01-07 07:22:25 -08:00
|
|
|
- name: Install sshpass, kicad, and tk bindings
|
2020-08-13 17:38:50 -07:00
|
|
|
run: |
|
2023-02-25 15:07:31 -08:00
|
|
|
sudo bash misc/actions/add-ubuntu-latest-apt-mirrors.sh
|
2023-03-13 13:40:24 -07:00
|
|
|
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
|
2023-01-07 07:22:25 -08:00
|
|
|
sudo apt-get install sshpass kicad python3-pip python3-tk scour librsvg2-bin
|
|
|
|
pip install python-dateutil pygubu
|
2020-08-13 17:38:50 -07:00
|
|
|
|
|
|
|
- name: Get KiCad-Diff
|
2023-03-23 10:19:31 -07:00
|
|
|
run: |
|
|
|
|
git clone https://github.com/leoheck/KiCad-Diff.git
|
|
|
|
cd KiCad-Diff
|
|
|
|
git reset --hard 4d018507e511129951a332a0d2d14e1c11be3eaa
|
2020-08-13 17:38:50 -07:00
|
|
|
|
2023-01-07 07:22:25 -08:00
|
|
|
- name: Set SSH variables
|
2020-11-18 15:59:02 -08:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
2020-08-13 17:38:50 -07:00
|
|
|
run: |
|
|
|
|
if [ "${{github.event_name}}" = "push" ] && [ "${{github.ref}}" = "refs/heads/master" ]; then
|
2023-07-26 06:29:32 -07:00
|
|
|
echo "RUSEFI_SSH_SERVER=${{secrets.RUSEFI_SSH_SERVER}}" >> $GITHUB_ENV
|
|
|
|
echo "RUSEFI_SSH_USER=${{secrets.RUSEFI_SSH_USER}}" >> $GITHUB_ENV
|
|
|
|
echo "RUSEFI_SSH_PASS=${{secrets.RUSEFI_SSH_PASS}}" >> $GITHUB_ENV
|
2020-08-13 17:38:50 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Generate diffs
|
|
|
|
working-directory: ./hardware
|
2020-08-15 07:45:57 -07:00
|
|
|
run: bash ./rusefi_lib/generate_diffs.sh
|