commit 6b8df2f7b48e77c88d399864a0e4646fd8437f57 Author: Sergey Ladanov Date: Tue Sep 12 22:53:40 2023 +0300 init commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..907f304 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:16-bullseye + +RUN apt-get update && \ + apt-get install \ + gcc-arm-none-eabi \ + -y && \ + rm -rf /var/cache/apt + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..f3d4850 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## Пример настройки CI/CD + +``` + +jobs: + build: + name: Building project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: make + uses: embedd-actions/arm-gcc-ci@v1 + with: + command: make --directory Release all + +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..288b3ee --- /dev/null +++ b/action.yml @@ -0,0 +1,15 @@ +name: 'ARM GCC build' +description: 'Building arm projects' +inputs: + command: + description: 'Command' + required: true + default: arm-none-eabi-gcc --version +runs: + using: 'docker' + image: 'Dockerfile' + args: + - /bin/bash + - -c + - ${{ inputs.command }} +