Skip to content

Commit dfda572

Browse files
committed
version detect change
1 parent bfbe519 commit dfda572

14 files changed

Lines changed: 25003 additions & 181 deletions

File tree

.github/.debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

.github/.debian/control

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Source: docker-runner-php
2+
Section: PHP
3+
Priority: optional
4+
Build-Depends: debhelper (>= 8.0.0)
5+
Maintainer: macskas
6+
Homepage: http://github.com/macskas/DockerRunnerBasic
7+
8+
Package: docker-runner-php
9+
Architecture: amd64
10+
Depends: ${shlibs:Depends}, ${misc:Depends}
11+
Description: cli php runner for docker containers, heavy stdout
12+
Docker exec replacement for heavy duty, multiuser environment

.github/.debian/copyright

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: clusterdaemon
3+
Source: <url://example.com>
4+
5+
Files: *
6+
Copyright: <years> <put author's name and email here>
7+
<years> <likewise for another author>
8+
License: <special license>
9+
<Put the license of the package here indented by 1 space>
10+
<This follows the format of Description: lines in control file>
11+
.
12+
<Including paragraphs>
13+
14+
# If you want to use GPL v2 or later for the /debian/* files use
15+
# the following clauses, or change it to suit. Delete these two lines
16+
Files: debian/*
17+
Copyright: 2020 macskas
18+
License: GPL-2+
19+
This package is free software; you can redistribute it and/or modify
20+
it under the terms of the GNU General Public License as published by
21+
the Free Software Foundation; either version 2 of the License, or
22+
(at your option) any later version.
23+
.
24+
This package is distributed in the hope that it will be useful,
25+
but WITHOUT ANY WARRANTY; without even the implied warranty of
26+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27+
GNU General Public License for more details.
28+
.
29+
You should have received a copy of the GNU General Public License
30+
along with this program. If not, see <http://www.gnu.org/licenses/>
31+
.
32+
On Debian systems, the complete text of the GNU General
33+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
34+
35+
# Please also look if there are files or directories which have a
36+
# different copyright/license attached and list them here.
37+
# Please avoid to pick license terms that are more restrictive than the
38+
# packaged work, as it may make Debian's contributions unacceptable upstream.

.github/workflows/cmake.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: CMake
2+
3+
on: [workflow_dispatch]
4+
5+
env:
6+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7+
BUILD_TYPE: Release
8+
PACKAGE_NAME: docker-runner-php
9+
PACKAGE_VERSION: 1.0.0-1
10+
ARCH: amd64
11+
12+
jobs:
13+
create_release:
14+
name: Create release
15+
runs-on: ubuntu-latest
16+
outputs:
17+
upload_url: ${{ steps.create_release.outputs.upload_url }}
18+
steps:
19+
- name: Create release
20+
id: create_release
21+
uses: actions/create-release@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}
26+
release_name: Binary release ${{ env.PACKAGE_NAME }} ${{ env.PACKAGE_VERSION }}
27+
28+
build_release:
29+
name: Build release
30+
needs: create_release
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, ubuntu-20.04]
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Install Dependecies ubuntu-latest
39+
run: |
40+
sudo apt-get -y -qq update
41+
sudo apt-get -y -qq --no-install-recommends install \
42+
cmake
43+
44+
- name: Create Build Environment
45+
run: cmake -E make_directory ${{runner.workspace}}/build
46+
47+
- name: Configure CMake
48+
shell: bash
49+
working-directory: ${{runner.workspace}}/build
50+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
51+
52+
- name: Build
53+
working-directory: ${{runner.workspace}}/build
54+
shell: bash
55+
run: cmake --build . --config $BUILD_TYPE
56+
57+
- name: Build dep and binary package
58+
shell: bash
59+
run: |
60+
sudo apt-get -y -qq install fakeroot dh-make
61+
bash .github/build-debian.sh
62+
63+
- name: get name of the artifact
64+
run: |
65+
ARTIFACT_PATHNAME_DEB=$(ls Release/*.deb|head -n1)
66+
ARTIFACT_NAME_DEB=$(basename $ARTIFACT_PATHNAME_DEB)
67+
ARTIFACT_PATHNAME_TAR=$(ls Release/*.tar.gz|head -n1)
68+
ARTIFACT_NAME_TAR=$(basename $ARTIFACT_PATHNAME_TAR)
69+
echo ARTIFACT_NAME_DEB=${ARTIFACT_NAME_DEB} >> $GITHUB_ENV
70+
echo ARTIFACT_PATHNAME_DEB=${ARTIFACT_PATHNAME_DEB} >> $GITHUB_ENV
71+
echo ARTIFACT_NAME_TAR=${ARTIFACT_NAME_TAR} >> $GITHUB_ENV
72+
echo ARTIFACT_PATHNAME_TAR=${ARTIFACT_PATHNAME_TAR} >> $GITHUB_ENV
73+
74+
- name: Upload deb
75+
uses: actions/upload-release-asset@v1
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
with:
79+
upload_url: ${{ needs.create_release.outputs.upload_url }}
80+
asset_path: ${{ env.ARTIFACT_PATHNAME_DEB }}
81+
asset_name: ${{ env.ARTIFACT_NAME_DEB }}
82+
asset_content_type: application/vnd.debian.binary-package
83+
84+
- name: Upload tar.gz
85+
uses: actions/upload-release-asset@v1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
upload_url: ${{ needs.create_release.outputs.upload_url }}
90+
asset_path: ${{ env.ARTIFACT_PATHNAME_TAR }}
91+
asset_name: ${{ env.ARTIFACT_NAME_TAR }}
92+
asset_content_type: application/gzip
93+
94+

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
project(docker-runner)
3+
4+
set(CMAKE_CXX_STANDARD 14)
5+
set(CMAKE_CXX_FLAGS "-O2 -march=native -std=c++0x")
6+
LINK_LIBRARIES(rt dl)
7+
add_executable(docker-runner main.cpp globals.h cdocker.cpp cdocker.h cdockercontainer.cpp cdockercontainer.h cphprunner.cpp cphprunner.h)

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)