progress
This commit is contained in:
parent
942c01c791
commit
9430fa4b14
|
@ -1,6 +1,6 @@
|
|||
name: Check All
|
||||
|
||||
on: [push, pull_request]
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
build-firmware:
|
||||
|
@ -13,12 +13,26 @@ jobs:
|
|||
|
||||
- name: 1. Build Docker
|
||||
run: |
|
||||
bash step1_build_hellen-one_docker.sh
|
||||
bash hellen-one/bin/step1_build_hellen-one_docker.sh
|
||||
|
||||
- name: 2. Copy
|
||||
run: |
|
||||
bash step2_copy_with_docker.sh
|
||||
bash hellen-one/bin/step2_copy_with_docker.sh
|
||||
|
||||
- name: 3. Create Board
|
||||
run: |
|
||||
bash hellen-one/bin/step3_create_board_with_docker.sh
|
||||
|
||||
- name: Commit fresh board files
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
run: |
|
||||
bash hellen-one/bin/gha-commit.sh
|
||||
|
||||
- name: Push board files
|
||||
if: ${{env.NOCOMMIT != 'true'}}
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
branch: ${{ steps.extract_branch.outputs.branch }}
|
||||
|
||||
# - name: 3. Create Board
|
||||
# run: |
|
||||
# bash step3_create_board_with_docker.sh
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -f hellen-one/git_scripts ]; then
|
||||
echo "No submodules?"
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
|
||||
# This command is me trying to be fancy
|
||||
# '--entrypoint python3' skips the normal container CMD and starts python3 instead
|
||||
# using the parameters specified after 'hellen-one'
|
||||
#
|
||||
# -v "$(pwd)":/${PWD##*/} simply mounts the current working directory
|
||||
# at /<the name of the current directory>
|
||||
#
|
||||
# '/${PWD##*/}' is doing the $pwd basename thing again
|
||||
|
||||
docker run --rm -t --user $(id -u):$(id -g) --entrypoint python3 -v "$(pwd)":/${PWD##*/} hellen-one ./bin/copy_from_Kicad.py "frames:alphax_" "/${PWD##*/}" "../../gerber" "4ch" "b"
|
||||
|
||||
echo "Done!"
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -f hellen-one/git_scripts ]; then
|
||||
echo "No submodules?"
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
# See step2_copy_with_docker.sh for explanation of the following command
|
||||
|
||||
docker run --rm -t --user $(id -u):$(id -g) --entrypoint bash -v "$(pwd)":/${PWD##*/} hellen-one ./bin/create_board_with_prefix.sh "alphax_" "/${PWD##*/}" "4ch" "b" "bom_replace_alphax-4ch-b.csv " "0,4"
|
||||
|
Loading…
Reference in New Issue