Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLadanov committed Sep 22, 2023
1 parent cb2a033 commit ded3ed5
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 10 deletions.
32 changes: 27 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
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 \
--no-install-recommends \
gcc-arm-none-eabi \
libstdc++-arm-none-eabi-newlib \
make \
cmake \
wget \
ca-certificates \
-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" ]
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
- uses: actions/checkout@v3
- name: make
uses: embedd-actions/arm-gcc-ci@v1
uses: embedd-actions/arm-gcc-ci@v12.3.1
with:
command: make --directory Release all
```

## List of available tags

```
v12.3.1
```
7 changes: 3 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ inputs:
default: arm-none-eabi-gcc --version
runs:
using: 'docker'
image: 'docker://sergeyladanov/arm-gcc:v1'
image: 'Dockerfile'
#image: 'docker://sergeyladanov/arm-gcc:v12.3.1'
args:
- /bin/sh
- -c
- ${{ inputs.command }}
- ${{ inputs.command }}

10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

. /etc/bashrc

exec $@

0 comments on commit ded3ed5

Please sign in to comment.