Sign inSign up

songritk/onstep-e4-docker-builder

By songritk

Updated about 3 years ago

Compiler for arduino FYSETC E4 (onstepX)

Image
0

826

songritk/onstep-e4-docker-builder repository overview

โปรแกรมนี้เป็น compiler สำหรับบอร์ด FYSETC E4 ใช้ออกแบบเพื่อคอมไพล์ OnStepX

ตัวอย่างการใช้งาน

รัน image

docker run -it --rm songritk/onstep-e4-docker-builder:latest bash

ภายใน docker

git clone https://github.com/hjd1964/OnStepX
cd OnStepX
git checkout tags/E4
rm -f Config.h
curl https://gist.githubusercontent.com/songritk/665ef6b580324a8b4ec7de78073edaa8/raw/be266925128b3c3214994384ede2d33e5cb68fdf/Config.h --output Config.h
arduino-cli compile --fqbn esp32:esp32:esp32 .

cp ..esp32.esp32.esp32.bin OnStepX.bin
cp ..esp32.esp32.esp32.elf OnStepX.elf 

ได้ไฟล์ OnStepX.bin และ OnStepX.elf

ตัวอย่าง .gitlab-ci.yml

image: songritk/onstep-e4-docker-builder

stages:
  - build

compile:
  stage: build
  tags:
    - docker
  script:
    - arduino-cli compile --fqbn esp32:esp32:esp32 .
    - cp ..esp32.esp32.esp32.bin OnStepX.bin && cp ..esp32.esp32.esp32.elf OnStepX.elf 
  artifacts:
    paths:
      - "OnStepX.bin"
      - "OnStepX.elf"

Tag summary

Content type

Image

Digest

sha256:c3e3a4407

Size

1.6 GB

Last updated

about 3 years ago

docker pull songritk/onstep-e4-docker-builder