mirror of
https://github.com/embedd-actions/platformio-ci.git
synced 2025-04-20 08:05:42 +03:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4be59c6d2b | ||
|
38936a700c | ||
|
57a1715e24 | ||
|
b29a77d35a | ||
|
147f257ce5 | ||
|
9676c94f87 | ||
|
6d8f28a979 | ||
|
001ce42f99 | ||
|
551aa96eb3 |
@ -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" ]
|
||||
|
11
README.md
11
README.md
@ -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
|
||||
```
|
||||
|
10
action.yml
10
action.yml
@ -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
3
entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec $@
|
Loading…
x
Reference in New Issue
Block a user