Skip to content

Commit

Permalink
Correct GitHub CI workflow after dynamic versioning addition
Browse files Browse the repository at this point in the history
  • Loading branch information
lkedziora committed Jul 8, 2024
1 parent db8ac06 commit 49049e6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,47 @@ concurrency:

on:
push:
branches: [main]
branches: [gh-fix-ci]
pull_request:

jobs:
TestGerber2blend:
runs-on: ubuntu-latest
container:
image: debian:bookworm
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/gh-fix-ci'

steps:
- uses: actions/checkout@v4
with:
submodules: false

- 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: Install gerber2blend to venv
run: |
python3.11 -m pipx install .
- 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: Generate blend from Gerber files
working-directory: ./jetson-orin-baseboard/
- name: Install gerber2blend and generate blend from Gerber files
run: |
. ${GITHUB_WORKSPACE}/venv/bin/activate
git config --global --add safe.directory ${GITHUB_WORKSPACE}
python3.11 -m pipx install .
python3.11 -m pipx ensurepath
source ~/.bashrc
cd ./jetson-orin-baseboard
gerber2blend -d
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 49049e6

Please sign in to comment.