Skip to content

Commit

Permalink
Merge pull request #1 from ryanwinter/bullseye
Browse files Browse the repository at this point in the history
update to ubuntu and latest cmake and latest gcc
  • Loading branch information
ryanwinter authored Aug 26, 2022
2 parents 4ef72f6 + ffc60e5 commit 6bfba16
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflow/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Docker build and test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build Docker image
run: docker build -t docker-arm-none-eabi-gcc .
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
ARG VARIANT=buster
ARG VARIANT=ubuntu
FROM mcr.microsoft.com/vscode/devcontainers/base:${VARIANT}

RUN apt-get update \
&& apt-get -y install --no-install-recommends bzip2 cmake ninja-build \
&& apt-get clean -y \
# Install cmake repository
RUN wget -qO- https://apt.kitware.com/kitware-archive.sh | sh

RUN apt update \
&& apt -y install --no-install-recommends ninja-build wget cmake xz-utils \
&& apt clean -y \
&& rm -rf /var/lib/apt/lists/*

# Install GCC
WORKDIR /work
RUN wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 | tar -xj
ENV PATH $PATH:/work/gcc-arm-none-eabi-10-2020-q4-major/bin
RUN wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz | tar -xJ
ENV PATH $PATH:/work/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin

0 comments on commit 6bfba16

Please sign in to comment.