cleanup docker files and build/test procedure

This commit is contained in:
Ryo Nakamura
2022-11-06 16:00:18 +09:00
parent 15dbb564c8
commit df404ec3c6
14 changed files with 174 additions and 108 deletions

View File

@@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: install build dependency
run: sudo ./install-build-deps.sh
run: sudo ./scripts/install-build-deps.sh
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

View File

@@ -41,7 +41,7 @@ jobs:
uses: actions/checkout@v3
- name: Install build dependency
run: sudo ./install-build-deps.sh
run: sudo ./scripts/install-build-deps.sh
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -1,4 +1,4 @@
name: test on ubuntu
name: test
on:
push:
@@ -12,11 +12,14 @@ env:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build test container
run: docker build --rm -t mscp-test -f docker/Dockerfile-test .
- name: Run test
run: docker run --init --rm mscp-test bash -c "/usr/sbin/sshd; cd /mscp/build; ctest --verbose"
- name: Build ubuntu 22.04 container
run: docker build --rm -t mscp-ubuntu:22.04 -f docker/ubuntu-22.04.Dockerfile .
- name: Run test on ubuntu 22.04
run: docker run --init --rm mscp-ubuntu:22.04 /mscp/scripts/test-in-container.sh
- name: Build centos 8 container
run: docker build --rm -t mscp-centos:8 -f docker/centos-8.Dockerfile .
- name: Run test on centos 8
run: docker run --init --rm mscp-centos:8 /mscp/scripts/test-in-container.sh