diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..bafeb66 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,30 @@ +name: Docker Build and Test + +on: + push: + branches: + - docker + - main + pull_request: + branches: + - docker + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build Docker image + run: docker build -t build_test . + + - name: Run Docker container + run: docker run --rm build_test diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ccbecc1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM gcc:latest + +RUN apt-get update && apt-get install -y \ + cmake \ + make \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /rawhash2 +COPY . /rawhash2 + +RUN mkdir build && cd build \ + && cmake .. \ + && make -j + +ENTRYPOINT ["./build/bin/rawhash2"] + +LABEL Name=rawhash2 Version=0.0.1 diff --git a/src/hdf5_tools.hpp b/src/hdf5_tools.hpp index a8622e7..f963a0d 100644 --- a/src/hdf5_tools.hpp +++ b/src/hdf5_tools.hpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include