-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from martinweismann/rtti-native-3
Native Run-Time Type Information support @anpilog
- Loading branch information
Showing
204 changed files
with
17,194 additions
and
483 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,13 @@ | ||
# action.yml | ||
name: 'BuildWithDocker' | ||
description: 'Build ACT within a Docker container' | ||
inputs: | ||
command: # id of input | ||
description: 'What command to run' | ||
required: true | ||
default: 'act' | ||
runs: | ||
using: 'docker' | ||
image: '../../../Build/Dockerfile' | ||
args: | ||
- ${{ inputs.command }} |
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
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,19 @@ | ||
on: [push, pull_request] | ||
name: Build ACT examples | ||
jobs: | ||
build_with_docker: | ||
runs-on: ubuntu-latest | ||
name: Build ACT examples with docker | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: build act | ||
id: build_act | ||
uses: ./.github/actions/buildWithDocker | ||
with: | ||
command: 'act' | ||
- name: build examples | ||
id: build_examples | ||
uses: ./.github/actions/buildWithDocker | ||
with: | ||
command: 'examples' |
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 |
---|---|---|
@@ -1,22 +1,28 @@ | ||
*.cpp | ||
*.hpp | ||
*.h | ||
*.exe | ||
*.linux | ||
*.linux32 | ||
*.linux64 | ||
*.darwin | ||
*.exe | ||
*.dylib | ||
*.so | ||
*.dll | ||
*.arm | ||
*.c | ||
*.go | ||
*.orig | ||
*.class | ||
*.jar | ||
*.log | ||
*.o | ||
*.ppu | ||
__pycache__ | ||
|
||
Examples/**/build | ||
Examples/**/build-* | ||
Examples/**/bin | ||
Examples/**/obj | ||
|
||
# Visual Studio Code | ||
debug | ||
.vscode | ||
|
||
*_headers | ||
*_component | ||
|
||
Examples/*.xml | ||
.DS_Store |
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,87 @@ | ||
FROM centos:centos8 | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
|
||
LABEL maintainer="Andrii Anpilogov ([email protected])" | ||
|
||
RUN [ -e /etc/yum.conf ] && sed -i '/tsflags=nodocs/d' /etc/yum.conf || true | ||
|
||
# RUN yum install -y icu | ||
|
||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
RUN yum update -y | ||
|
||
RUN dnf -y install dnf-plugins-core | ||
RUN dnf -y install dnf-plugin-config-manager | ||
RUN dnf -y update | ||
|
||
RUN dnf -y install epel-release | ||
RUN dnf -y config-manager --set-enabled powertools | ||
|
||
# GCC | ||
RUN dnf -y install gcc-toolset-9-gcc | ||
RUN dnf -y install gcc-toolset-9-gcc-c++ | ||
|
||
# CMake & Ninja | ||
RUN dnf -y install cmake | ||
RUN dnf -y install ninja-build | ||
|
||
# Free Pascal | ||
# 3.0.4 should be used for validating compiler base compatibility. | ||
RUN (cd /opt && curl -O -L 'http://downloads.sourceforge.net/project/freepascal/Linux/3.0.4/fpc-3.0.4-1.x86_64.rpm' \ | ||
&& rpm -i fpc-3.0.4-1.x86_64.rpm) | ||
|
||
# Using 3.2.2 until PolymorphicFactory is reworked to not using generics that are not full functional in 3.0.4. | ||
# RUN (cd /opt && curl -O -L 'http://downloads.sourceforge.net/project/freepascal/Linux/3.2.2/fpc-3.2.2-1.x86_64.rpm' \ | ||
# && rpm -i fpc-3.2.2-1.x86_64.rpm) | ||
|
||
# Golang | ||
RUN (cd /opt && curl -O -L https://golang.org/dl/go1.17.2.linux-amd64.tar.gz \ | ||
&& tar zxvf go1.17.2.linux-amd64.tar.gz) | ||
|
||
# Java | ||
RUN dnf -y install \ | ||
java-11-openjdk-devel | ||
|
||
# Mono | ||
RUN rpm --import https://download.mono-project.com/repo/xamarin.gpg \ | ||
&& dnf config-manager --add-repo https://download.mono-project.com/repo/centos8-stable.repo \ | ||
&& dnf -y install mono-complete | ||
|
||
# General purpose tools | ||
RUN dnf -y install \ | ||
glibc-common \ | ||
glibc-utils \ | ||
less \ | ||
passwd \ | ||
tar \ | ||
vim-minimal \ | ||
vim-enhanced \ | ||
which \ | ||
sudo \ | ||
bash-completion \ | ||
mc \ | ||
yum-utils \ | ||
&& yum clean all | ||
|
||
# # Initialize Toolkit | ||
RUN echo "source /opt/rh/gcc-toolset-9/enable" >> /etc/bashrc | ||
ENV PATH="${PATH}:/opt/go/bin" | ||
|
||
# Initialize Toolkit | ||
# RUN : "${USER_ID:?Build argument needs to be set and non-empty.}" \ | ||
# : "${GROUP_ID:?Build argument needs to be set and non-empty.}" | ||
|
||
# Create user | ||
RUN if [ $USER_ID != "" ] ; then groupadd docker \ | ||
&& useradd -ms /bin/bash --uid $USER_ID -g docker -G wheel user \ | ||
&& printf "user:user" | chpasswd \ | ||
&& printf "user ALL= NOPASSWD: ALL\\n" >> /etc/sudoers ; fi | ||
|
||
# Initialize Toolkit | ||
RUN if [ $USER_ID != "" ] ; then echo "source /opt/rh/gcc-toolset-9/enable" >> /home/user/.bash_profile ; fi | ||
RUN if [ $USER_ID != "" ] ; then echo "export PATH=\$PATH:/opt/go/bin" >> /home/user/.bash_profile ; fi | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
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
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
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,54 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
RUN () { | ||
CMD=$1 | ||
OS="`uname`" | ||
case $OS in | ||
Linux*) | ||
OSLD_LIBRARY_PATH="LD_LIBRARY_PATH=$2" | ||
for i in "${@:3}" | ||
do | ||
OSLD_LIBRARY_PATH=$OSLD_LIBRARY_PATH:$i | ||
done | ||
eval $OSLD_LIBRARY_PATH $CMD | ||
;; | ||
Darwin*) | ||
OSLD_LIBRARY_PATH="DYLD_LIBRARY_PATH=$2" | ||
for i in "${@:3}" | ||
do | ||
OSLD_LIBRARY_PATH=$OSLD_LIBRARY_PATH:$i | ||
done | ||
eval $OSLD_LIBRARY_PATH $CMD | ||
;; | ||
Windows*) OSLD_LIBRARY_PATH='PATH=%PATH%;' ;; | ||
*) ;; | ||
esac | ||
} | ||
|
||
# Common initialization | ||
OS="`uname`" | ||
case $OS in | ||
Linux*) | ||
OSEXT='.linux' | ||
OSLIBEXT='.so' | ||
OSEXEEXT= | ||
FPC_TARGET='linux' | ||
;; | ||
Windows*) | ||
OSEXT='.exe' | ||
OSLIBEXT='.dll' | ||
OSEXEEXT='.exe' | ||
FPC_TARGET='win64' | ||
;; | ||
Darwin*) | ||
OSEXT='.darwin' | ||
OSLIBEXT='.dylib' | ||
OSEXEEXT= | ||
FPC_TARGET='darwin' | ||
;; | ||
*) echo "[Failed] Can't detect OS. Only Windows, Linux and MacOS are supported."; exit 1; ;; | ||
esac | ||
|
||
export ACT=act$OSEXT |
Oops, something went wrong.