-
Notifications
You must be signed in to change notification settings - Fork 160
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 #119 from EthicalML/114_further_tests_on_ci
Added further tests to CI and provide Dockerimage with builds to swiftshader
- Loading branch information
Showing
20 changed files
with
355 additions
and
66 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,5 @@ | ||
build/* | ||
examples/* | ||
docker-builders/ | ||
swiftshader/ | ||
|
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,34 @@ | ||
name: C++ Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
cpp-tests: | ||
|
||
runs-on: ubuntu-18.04 | ||
container: axsauze/kompute-builder:0.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: configure-cpp | ||
run: | | ||
cmake -Bbuild/ \ | ||
-DKOMPUTE_OPT_INSTALL=0 \ | ||
-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 \ | ||
-DKOMPUTE_OPT_BUILD_TESTS=1 \ | ||
-DKOMPUTE_OPT_ENABLE_SPDLOG=1 \ | ||
-DSPDLOG_INSTALL=1 | ||
- name: build-cpp | ||
run: | | ||
make mk_build_tests | ||
- name: test-cpp | ||
run: | | ||
export VK_ICD_FILENAMES=/swiftshader/vk_swiftshader_icd.json | ||
make mk_run_tests_cpu_only | ||
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: Python Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
python-tests: | ||
|
||
runs-on: ubuntu-18.04 | ||
container: axsauze/kompute-builder:0.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: configure-python | ||
run: | | ||
pip3 install -r python/test/requirements-dev.txt | ||
- name: build-python | ||
run: | | ||
pip3 install . | ||
- name: test-python | ||
run: | | ||
export VK_ICD_FILENAMES=/swiftshader/vk_swiftshader_icd.json | ||
pytest -v python/test/test_array_multiplication.py | ||
pytest -v python/test/test_kompute.py -k "test_opmult" | ||
pytest -v python/test/test_logistic_regression.py | ||
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 |
---|---|---|
|
@@ -183,4 +183,7 @@ tmp/ | |
build/ | ||
release/ | ||
|
||
# Kompute | ||
swiftshader/ | ||
|
||
|
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,35 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# Base packages from default ppa | ||
RUN apt-get update -y | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y gnupg | ||
RUN apt-get install -y ca-certificates | ||
RUN apt-get install -y software-properties-common | ||
|
||
# Repository to latest cmake | ||
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - | ||
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | ||
|
||
# Repository for latest git (needed for gh actions) | ||
RUN add-apt-repository -y ppa:git-core/ppa | ||
|
||
# Refresh repositories | ||
RUN apt update -y | ||
|
||
RUN apt install -y git | ||
RUN apt-get install -y cmake g++ | ||
RUN apt-get install -y libvulkan-dev | ||
# Swiftshader dependencies | ||
RUN apt-get install -y libx11-dev zlib1g-dev | ||
RUN apt-get install -y libxext-dev | ||
|
||
COPY --from=axsauze/swiftshader:0.1 /swiftshader/ /swiftshader/ | ||
|
||
# Setup Python | ||
RUN apt-get install -y python3-pip | ||
|
||
RUN mkdir builder | ||
WORKDIR /builder | ||
|
||
|
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 @@ | ||
|
||
build_kompute_builder: | ||
docker build .. -f KomputeBuilder.Dockerfile -t axsauze/kompute-builder:0.2 | ||
|
||
push_kompute_builder: build_kompute_builder | ||
docker push axsauze/kompute-builder:0.2 | ||
|
||
build_swiftshader: | ||
docker build .. -f Swiftshader.Dockerfile -t axsauze/swiftshader:0.1 | ||
|
||
push_swiftshader: build_swiftshader | ||
docker push axsauze/swiftshader:0.1 | ||
|
||
build_vulkan_sdk: | ||
docker build .. -f VulkanSDK.Dockerfile -t axsauze/vulkan-sdk:0.1 | ||
|
||
push_vulkan_sdk: build_vulkan_sdk | ||
docker push axsauze/vulkan-sdk:0.1 | ||
|
Oops, something went wrong.