-
|
Good Afternoon, Ive been struggling to setup github CI/CD for a couple of days now and I'm stuck! Is there a way to include external libraries / templates to the container? We use google drive and I have the drive mapped in the Linux GitHub runner but I cant see a way of adding it in the yaml? Please see below any suggestions would be appreciated name: example
on:
push:
paths:
- '**.sch'
- '**.kicad_pcb'
- '**.yaml'
pull_request:
paths:
- '**.sch'
- '**.kicad_pcb'
- '**.yaml'
workflow_dispatch:
jobs:
example:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v2
- uses: INTI-CMNB/KiBot@v2_k8
with:
# Required - kibot config file
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
# optional - schematic file
schema: '*.kicad_sch'
# optional - PCB design file
board: '*.kicad_pcb'
- name: upload results
uses: actions/upload-artifact@v2
with:
name: output
path: output |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
|
I never used Google Drive for GitHub projects, what are you using to integrate it? Normally you put your libs in another repo. Then you use git submodules. In this way the libs becomes part of the project, but you update them only in one repo. Note that you need to do some update in the repos using the lib, but is just a command, the changes are done in the lib repo. This is the most common case. |
Beta Was this translation helpful? Give feedback.
-
|
To add to the question, how does one do the same thing when the user libraries are in a repo and you are using CI/CD? Hours of searching have turned up no answer. Example, I have KICAD_USER_MODEL_DIR set to the location on my local drive when I'm using kicad manually -- how do I set this variable in kicad within docker when using CI? I can pull the libraries into docker from git, but I don't know how to 'tell' kicad that is the user directory? Specifically interested in: (though I don't think template dir is used). I feel like this is trivial but I can't seem to find an answer (yet). -Tom |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


I have finally managed to make it work today,
I have mounted google drive in the runner using https://github.com/astrada/google-drive-ocamlfuse and the yaml below!