Skip to content

Adiciona o docker do firmware #68

Adiciona o docker do firmware

Adiciona o docker do firmware #68

Workflow file for this run

name: Build lint and check formatting
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
steps:
- name: πŸ”€ Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: πŸ”§ Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: πŸ‹ Build Docker image
uses: docker/build-push-action@v6
with:
context: .
target: build
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
no-cache-filters: build
tags: micras:build
- name: 🎨 Check code formatting
run: docker run --rm micras:build /bin/bash /MicrasFirmware/docker/scripts/format.sh
- name: πŸ”¨ Build project
run: docker run --rm micras:build /bin/bash /MicrasFirmware/docker/scripts/build.sh
- name: 🚨 Lint project
run: docker run --rm micras:build /bin/bash /MicrasFirmware/docker/scripts/build.sh -DLINTER_MODE=ON