Merge pull request #3 from embedd-actions/v2-branch

V2 branch
This commit is contained in:
Sergey 2023-09-22 22:02:34 +03:00 committed by GitHub
commit b29a77d35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 4 deletions

View File

@ -9,3 +9,9 @@ RUN apt-get update && \
&& \ && \
rm -rf /var/cache/apt && \ rm -rf /var/cache/apt && \
pip3 install platformio --break-system-packages pip3 install platformio --break-system-packages
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -14,6 +14,6 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build
uses: embedd-actions/platformio-ci@v1 uses: embedd-actions/platformio-ci@v2
``` ```

View File

@ -1,9 +1,13 @@
name: 'Platformio build' name: 'Platformio build'
description: 'Building platformio projects' description: 'Building platformio projects'
inputs:
command:
description: 'Command'
required: true
default: pio run
runs: runs:
using: 'docker' using: 'docker'
image: 'docker://sergeyladanov/platformio:v1' image: 'docker://sergeyladanov/platformio:v2'
args: args:
- pio - ${{ inputs.command }}
- run

3
entrypoint.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
exec $@