Skip to content

Commit

Permalink
hwllo github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 18, 2018
1 parent f7918c2 commit 5046d66
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/actions/run-test/Dockerfile
@@ -0,0 +1,50 @@
FROM ubuntu:xenial

MAINTAINER srz_zumix <zumix.cpp@gmail.com>

RUN apt-get update -q -y && \
apt-get install -y software-properties-common
RUN apt-get update -q -y && \
apt-get install -y wget vim iputils-ping sudo curl && \
apt-get install -y libsqlite3-dev libssl-dev && \
apt-get install -y python2.7 python2.7-dev python-virtualenv && \
apt-get install -y git subversion && \
apt-get install -y build-essential

# pyenv
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH
RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
RUN pyenv --version
RUN pyenv install 2.7.13
RUN pyenv install 3.5.2
RUN pyenv install 3.6.0
RUN pyenv local 2.7.13 && \
pip install --upgrade setuptools pip tox requests && \
pyenv local --unset
RUN pyenv local 3.5.2 && \
pip install --upgrade setuptools pip tox requests && \
pyenv local --unset
RUN pyenv local 3.6.0 && \
pip install --upgrade setuptools pip tox requests && \
pyenv local --unset
RUN pyenv local 2.7.13 3.5.2 3.6.0

RUN pip install virtualenv

RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" && \
apt-get update && \
apt-get install -y clang-6.0
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-6.0 1000 && \
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 1000 && \
update-alternatives --config clang && \
update-alternatives --config clang++

RUN mkdir /iutest
VOLUME [ "/iutest" ]
WORKDIR /iutest

ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

5 changes: 5 additions & 0 deletions .github/actions/run-test/entrypoint.sh
@@ -0,0 +1,5 @@
#!/bin/sh -l

sh -c "echo $*"

ls
12 changes: 12 additions & 0 deletions .github/main.workflow
@@ -0,0 +1,12 @@
workflow "New workflow" {
on = "push"
resolves = ["Hello World"]
}

action "Hello World" {
uses = "./actions/run-test"
env = {
MY_NAME = "srz_zumix"
}
args = "\"Hello world, I'm $MY_NAME!\""
}

0 comments on commit 5046d66

Please sign in to comment.