9 Commits
v1 ... master

Author SHA1 Message Date
4be59c6d2b Update README.md 2024-07-29 09:44:31 +03:00
38936a700c Update README.md 2023-09-22 22:05:07 +03:00
57a1715e24 Update README.md 2023-09-22 22:04:54 +03:00
b29a77d35a Merge pull request #3 from embedd-actions/v2-branch
V2 branch
2023-09-22 22:02:34 +03:00
147f257ce5 Update README.md 2023-09-22 21:56:26 +03:00
9676c94f87 Update action.yml 2023-09-22 21:56:08 +03:00
6d8f28a979 Update Dockerfile 2023-09-22 21:54:52 +03:00
001ce42f99 Create entrypoint.sh 2023-09-22 21:54:04 +03:00
551aa96eb3 Update README.md 2023-09-20 12:06:46 +03:00
4 changed files with 24 additions and 6 deletions

View File

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

View File

@ -1,6 +1,10 @@
# platformio-ci
Building platformio projects
## Usage
```
```yml
jobs:
build:
@ -10,6 +14,7 @@ jobs:
- uses: actions/checkout@v3
- name: Build
uses: embedd-actions/platformio-ci@v1
uses: embedd-actions/platformio-ci@v2
with: # Optional you can change command
command: pio run
```

View File

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

3
entrypoint.sh Normal file
View File

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