This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 41b0763
Showing
3 changed files
with
490 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# Copyright (c) 2023 Marvin Häuser. All rights reserved.<BR> | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
|
||
name: Build ue-dev Docker Image | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-ue-dev-img: | ||
name: Build ue-dev Docker Image | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Docker in rootless mode. | ||
uses: ScribeMD/[email protected] | ||
|
||
- name: Build ue-dev Docker Image | ||
run: docker build -t ue-dev Dockerfiles/ue-dev/repro | ||
|
||
- name: Save ue-dev Docker Image | ||
run: docker save ue-dev | xz -zc - > ue-dev.tar.xz | ||
|
||
- name: Upload to Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ue-dev Docker Image Artifacts | ||
path: ue-dev.tar.xz | ||
- name: Upload to Release | ||
if: github.event_name == 'release' | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ue-dev.tar.xz | ||
tag: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# Copyright (c) 2023 Marvin Häuser. All rights reserved.<BR> | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
|
||
FROM --platform=linux/amd64 ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
SHELL [ "/bin/bash", "-c" ] | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y \ | ||
wget \ | ||
software-properties-common \ | ||
gnupg \ | ||
xz-utils && \ | ||
wget -O qemu-8.0.2-bin.tar.xz https://github.com/mhaeuser/MastersThesis/releases/download/qemu-release/qemu-8.0.2-bin.tar.xz && \ | ||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc && \ | ||
add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main' && \ | ||
add-apt-repository 'deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main' && \ | ||
apt-get update && \ | ||
tar -C /opt/ -xJf qemu-8.0.2-bin.tar.xz && \ | ||
apt-get purge --auto-remove -y wget software-properties-common gnupg xz-utils && \ | ||
rm -f qemu-8.0.2-bin.tar.xz \ | ||
apt-get install -y \ | ||
build-essential \ | ||
gcc-arm-linux-gnueabi \ | ||
gcc-aarch64-linux-gnu \ | ||
gcc-11-multilib \ | ||
clang-16 \ | ||
clang-tools-16 \ | ||
lld-16 \ | ||
libssl-dev \ | ||
libx11-dev \ | ||
libxext-dev \ | ||
uuid-dev \ | ||
lcov \ | ||
nasm \ | ||
acpica-tools \ | ||
python3 \ | ||
python3-pip && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
python3 -m pip install \ | ||
requests \ | ||
PyYAML \ | ||
GitPython \ | ||
pexpect \ | ||
argparse \ | ||
prospector | ||
|
||
ENV PATH="$PATH:/usr/lib/llvm-16/bin/:/opt/qemu-8.0.2/bin/" | ||
ENV GCC5_ARM_PREFIX="arm-linux-gnueabi-" | ||
ENV GCC5_AARCH64_PREFIX="aarch64-linux-gnu-" |
Oops, something went wrong.