Merge pull request #3 from embedd-actions/v12.3.1-branch

V12.3.1 branch
This commit is contained in:
Sergey 2023-09-22 18:07:11 +03:00 committed by GitHub
commit f3db00c7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 55 additions and 11 deletions

View File

@ -1,14 +1,36 @@
FROM debian:stable-slim FROM debian:stable-slim
RUN apt-get update && \ ARG VERSION=12.3.1-1.1
RUN ARCH="$(dpkg --print-architecture)" && \
case $ARCH in \
"amd64") \
ARCH_TAG="x64" \
;; \
"arm64") \
ARCH_TAG="arm64" \
;; \
esac && \
# Get nessecary packages
apt-get update && \
apt-get install \ apt-get install \
--no-install-recommends \ --no-install-recommends \
gcc-arm-none-eabi \
libstdc++-arm-none-eabi-newlib \
make \ make \
cmake \ cmake \
wget \
ca-certificates \
-y && \ -y && \
rm -rf /var/cache/apt rm -rf /var/cache/apt && \
mkdir /workdir && \
cd /workdir && \
wget https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v${VERSION}/xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \
tar xvf xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \
rm xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz
RUN echo 'export PATH="/workdir/xpack-arm-none-eabi-gcc-'${VERSION}'/bin:$PATH"' >> /etc/bashrc
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -14,8 +14,14 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: make - name: make
uses: embedd-actions/arm-gcc-ci@v1 uses: embedd-actions/arm-gcc-ci@v12.3.1
with: with:
command: make --directory Release all command: make --directory Release all
``` ```
## List of available tags
```
v12.3.1
```

View File

@ -1,5 +1,8 @@
name: 'ARM GCC build' name: 'ARM GCC build'
description: 'Building arm projects' description: 'Building arm-gcc projects'
branding:
color: blue
icon: microchip
inputs: inputs:
command: command:
description: 'Command' description: 'Command'
@ -7,9 +10,7 @@ inputs:
default: arm-none-eabi-gcc --version default: arm-none-eabi-gcc --version
runs: runs:
using: 'docker' using: 'docker'
image: 'docker://sergeyladanov/arm-gcc:v1' image: 'docker://sergeyladanov/arm-gcc:v12.3.1'
args: args:
- /bin/sh - ${{ inputs.command }}
- -c
- ${{ inputs.command }}

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '2'
services:
arm-gcc:
container_name: arm-gcc
build:
context: .
dockerfile: Dockerfile
args:
- VERSION=12.3.1-1.1

5
entrypoint.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
. /etc/bashrc
exec $@