Correct GitHub CI workflow after dynamic versioning addition #12
Workflow file for this run
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
name: test | |
concurrency: | |
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [gh-fix-ci] | |
pull_request: | |
jobs: | |
TestGerber2blend: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:bookworm | |
if: github.ref == 'refs/heads/gh-fix-ci' | |
steps: | |
- name: Install dependencies | |
run: | | |
echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list | |
apt -qqy update | |
apt -qqy install git pip python3-poetry gerbv inkscape python3.11 pipx | |
apt -qqy install -t bookworm-backports kicad | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
fetch-depth: 0 | |
- name: Clone Jetson Orin Baseboard HW repository | |
run: | | |
git clone --quiet https://github.com/antmicro/jetson-orin-baseboard.git | |
- name: Generate Gerber files for HW project | |
working-directory: ./jetson-orin-baseboard/ | |
run: | | |
mkdir fab/ | |
kicad-cli pcb export gerbers --no-protel-ext -o fab/ jetson-orin-baseboard.kicad_pcb | |
kicad-cli pcb export drill --format gerber --excellon-separate-th -o fab/ jetson-orin-baseboard.kicad_pcb | |
- name: Install gerber2blend and generate blend from Gerber files | |
run: | | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
python3.11 -m pipx install . | |
PATH=$PATH:~/.local/bin | |
cd ./jetson-orin-baseboard | |
gerber2blend -d | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: HW project artifacts | |
path: | | |
./jetson-orin-baseboard/assets/* | |
./jetson-orin-baseboard/doc/* | |
./jetson-orin-baseboard/img/* | |
./jetson-orin-baseboard/fab/* | |
./jetson-orin-baseboard/*.kicad* | |
./jetson-orin-baseboard/sym-lib-table | |
./jetson-orin-baseboard/fp-lib-table | |
./jetson-orin-baseboard/README.md | |
./jetson-orin-baseboard/LICENSE | |
./jetson-orin-baseboard/blendcfg.yaml |