mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 01:39:30 +02:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: 🔋 Compile Common Image for Lilygo
|
|
|
|
on:
|
|
# The workflow is run when a commit is pushed or for a
|
|
# Pull Request.
|
|
- push
|
|
- pull_request
|
|
|
|
# This is the list of jobs that will be run concurrently.
|
|
jobs:
|
|
# This pre-job is run to skip workflows in case a workflow is already run, i.e. because the workflow is triggered by both push and pull_request
|
|
skip-duplicate-actions:
|
|
runs-on: ubuntu-latest
|
|
# Map a step output to a job output
|
|
outputs:
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
steps:
|
|
- id: skip_check
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
with:
|
|
# All of these options are optional, so you can remove them if you are happy with the defaults
|
|
concurrent_skipping: 'never'
|
|
skip_after_successful_duplicate: 'true'
|
|
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
|
|
|
|
build-common-image:
|
|
# This is the platform GitHub will use to run our workflow.
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
name: Checkout code
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/pip
|
|
~/.platformio/.cache
|
|
key: ${{ runner.os }}-pio
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install PlatformIO Core
|
|
run: pip install --upgrade platformio
|
|
|
|
# Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
|
|
- name: Copy USER_SECRETS.TEMPLATE.h to USER_SECRETS.h
|
|
run: cp ./Software/USER_SECRETS.TEMPLATE.h ./Software/USER_SECRETS.h
|
|
|
|
- name: Build image for Lilygo
|
|
run: pio run -e lilygo_330
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: battery-emulator-lilygo.bin
|
|
path: .pio/build/lilygo_330/firmware.bin
|