From 6b8df2f7b48e77c88d399864a0e4646fd8437f57 Mon Sep 17 00:00:00 2001 From: Sergey Ladanov Date: Tue, 12 Sep 2023 22:53:40 +0300 Subject: [PATCH] init commit --- Dockerfile | 10 ++++++++++ README.md | 17 +++++++++++++++++ action.yml | 15 +++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 action.yml 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 }} +