Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check installing process inside GitHub Actions #906

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
4a5cced
init
andarut Sep 24, 2023
df207af
try fix persmissions
andarut Sep 24, 2023
8aa3678
continue
andarut Sep 24, 2023
bc4802d
continue
andarut Sep 24, 2023
a81ddc4
disable build for speedup
andarut Sep 24, 2023
d4f4d56
add docker
andarut Sep 24, 2023
6702593
continue
andarut Sep 24, 2023
a0f09ea
continue
andarut Sep 24, 2023
7e0db47
continue
andarut Sep 24, 2023
1d30e68
install wget on
andarut Sep 24, 2023
1df66e4
install wget on
andarut Sep 24, 2023
09651a7
install wget on
andarut Sep 24, 2023
138d778
move installing packages process to docker files
andarut Sep 24, 2023
3474316
continue
andarut Sep 24, 2023
c3f9859
continue
andarut Sep 24, 2023
34182cf
continue
andarut Sep 24, 2023
a3d7de3
continue
andarut Sep 24, 2023
086c014
continue
andarut Sep 24, 2023
e815cf3
continue
andarut Sep 24, 2023
035c092
continue
andarut Sep 24, 2023
3bc695a
continue
andarut Sep 24, 2023
5e8639a
continue
andarut Sep 24, 2023
172608b
continue
andarut Sep 24, 2023
fd84cdb
continue
andarut Sep 24, 2023
a01cdf7
continue
andarut Sep 24, 2023
e2f5277
continue
andarut Sep 24, 2023
f77ffcb
continue
andarut Sep 24, 2023
1cb0d29
continue
andarut Sep 24, 2023
e0dcae3
continue
andarut Sep 24, 2023
408539a
continue
andarut Sep 24, 2023
62bd596
continue
andarut Sep 24, 2023
d2c9f08
continue
andarut Sep 24, 2023
babc398
continue
andarut Sep 24, 2023
c1e7e3f
continue
andarut Sep 24, 2023
0fc5982
continue
andarut Sep 24, 2023
0191a7d
continue
andarut Sep 24, 2023
ad783c5
continue
andarut Sep 24, 2023
2e1ba5b
continue
andarut Sep 24, 2023
4d65548
continue
andarut Sep 24, 2023
059dabb
continue
andarut Sep 24, 2023
fa9ef36
continue
andarut Sep 24, 2023
df80198
continue
andarut Sep 24, 2023
80bd5fe
continue
andarut Sep 24, 2023
e354737
trying to fix
andarut Oct 14, 2023
1ba15f8
try building deb package
andarut Oct 23, 2023
67411ae
test without fix
andarut Oct 24, 2023
b88a71f
diff with installation
andarut Oct 24, 2023
989bb3e
install with apt instead of dpkg
andarut Oct 24, 2023
eb895b3
show generated uticode utils
andarut Oct 26, 2023
d358f72
fix runner user
andarut Oct 26, 2023
ee9de22
Merge branch 'master' into andreylzmw-gh-install
andarut Nov 13, 2023
490f68e
test
andarut Dec 7, 2023
ddd919e
Merge branch 'master' into andreylzmw-gh-install
andarut Dec 25, 2023
7fd1835
remove flag
andarut Dec 26, 2023
1c12f91
try run install-linux target only manually
andarut Dec 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
kphp_root_dir: /home/kitten/kphp
kphp_polyfills_dir: /home/kitten/kphp/kphp-polyfills
kphp_build_dir: /home/kitten/kphp/build
demo_dir: "/home/kitten"

jobs:
build-linux:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/Dockerfile.buster.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:buster
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils ca-certificates gnupg wget lsb-release && \
echo "deb https://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
wget -qO /etc/apt/trusted.gpg.d/vkpartner.asc https://artifactory-external.vkpartner.ru/artifactory/api/gpg/key/public && \
echo "deb https://artifactory-external.vkpartner.ru/artifactory/kphp buster main" >> /etc/apt/sources.list && \
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - && \
echo "deb https://packages.sury.org/php/ buster main" >> /etc/apt/sources.list.d/php.list

RUN apt-get update && apt-get install -y git cmake make g++ lld gperf netcat php7.4-vkext kphp vk-tl-tools && \
mkdir -p /var/www/vkontakte/data/www/vkontakte.com/tl/ && \
tl-compiler -e /var/www/vkontakte/data/www/vkontakte.com/tl/scheme.tlo /usr/share/vkontakte/examples/tl-files/common.tl /usr/share/vkontakte/examples/tl-files/tl.tl

RUN useradd -ms /bin/bash kitten
13 changes: 13 additions & 0 deletions .github/workflows/Dockerfile.focal.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils ca-certificates gnupg wget software-properties-common pkg-config && \
wget -qO /etc/apt/trusted.gpg.d/vkpartner.asc https://artifactory-external.vkpartner.ru/artifactory/api/gpg/key/public && \
echo "deb https://artifactory-external.vkpartner.ru/artifactory/kphp focal main" >> /etc/apt/sources.list

RUN apt-get update && apt-get install -y git cmake make g++ lld gperf netcat php7.4-vkext kphp vk-tl-tools && \
mkdir -p /var/www/vkontakte/data/www/vkontakte.com/tl/ && \
tl-compiler -e /var/www/vkontakte/data/www/vkontakte.com/tl/scheme.tlo /usr/share/vkontakte/examples/tl-files/common.tl /usr/share/vkontakte/examples/tl-files/tl.tl

RUN useradd -ms /bin/bash kitten
17 changes: 17 additions & 0 deletions .github/workflows/Dockerfile.jammy.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && \
apt install -y --no-install-recommends apt-utils ca-certificates gnupg wget software-properties-common pkg-config && \
wget -qO /etc/apt/trusted.gpg.d/vkpartner.asc https://artifactory-external.vkpartner.ru/artifactory/api/gpg/key/public && \
echo "deb [arch=amd64] https://artifactory-external.vkpartner.ru/artifactory/kphp jammy main" | tee /etc/apt/sources.list.d/vkpartner.list

RUN apt install -y software-properties-common && apt update && \
add-apt-repository ppa:ondrej/php -y && \
apt update

RUN apt install -y git cmake make g++ lld gperf netcat php7.4-vkext kphp vk-tl-tools && \
mkdir -p /var/www/vkontakte/data/www/vkontakte.com/tl/ && \
tl-compiler -e /var/www/vkontakte/data/www/vkontakte.com/tl/scheme.tlo /usr/share/vkontakte/examples/tl-files/common.tl /usr/share/vkontakte/examples/tl-files/tl.tl

RUN useradd -ms /bin/bash kitten
31 changes: 31 additions & 0 deletions .github/workflows/linux-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: linux-install

on:
workflow_dispatch:

env:
kphp_root_dir: /home/kitten/kphp
kphp_polyfills_dir: /home/kitten/kphp/kphp-polyfills
kphp_build_dir: /home/kitten/kphp/build

jobs:
install-linux:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: buster
- os: focal
# - os: jammy # TODO: enable after release to artifactory servers

steps:
- uses: actions/checkout@v3

- name: Build and start Docker container
run: |
docker build -f $GITHUB_WORKSPACE/.github/workflows/Dockerfile.${{matrix.os}}.install $GITHUB_WORKSPACE -t kphp-build-img-${{matrix.os}}-install
docker run -dt --name kphp-build-container-${{matrix.os}}-install kphp-build-img-${{matrix.os}}-install

- name: Run php dummy script
run: docker exec -u kitten kphp-build-container-${{matrix.os}}-install bash -c
"cd ${{env.demo_dir}} && echo 'hello world' > demo.php && kphp --mode=cli --cxx=g++ demo.php && ./kphp_out/cli -o --user kitten"