Loading .gitlab-ci.yml +15 −44 Original line number Diff line number Diff line variables: &global-variables CXX: "g++ -std=c++17 -O3 -march=native -Wall -Wextra -Icpprb -pthread" CC: "g++ -std=c++17 -O3 -march=native -Wall -Wextra -Icpprb -pthread" DOCKER_BUILDKIT: 1 GIT_DEPTH: 10 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" stages: - build_image - export_org - build - page_build - page_deploy .job_template: &setup image: &dev_image $CI_REGISTRY_IMAGE/build:latest before_script: - g++ --version - python3 --version except: - schedules docker_build: image: docker:latest stage: build_image services: - docker:dind script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull $CI_REGISTRY_IMAGE/build:latest || true - docker build --pull=true --cache-from $CI_REGISTRY_IMAGE/build:latest -t $CI_REGISTRY_IMAGE/build:latest . - docker push $CI_REGISTRY_IMAGE/build:latest rules: - if: '$CI_PIPELINE_SOURCE == "schedule"' when: always - if: '$CI_PIPELINE_SOURCE != "schedule"' when: manual allow_failure: true .build_template: &build_env image: python:3.12 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" cache: - key: files: - pyproject.toml - setup.py paths: - "$PIP_CACHE_DIR" cpprb_build: image: python:3.12 <<: *build_env stage: build needs: - README_MD variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" script: - pip wheel -w dist --no-deps artifacts: paths: - dist/*.whl cache: - key: files: - pyproject.toml - setup.py paths: - "$PIP_CACHE_DIR" - src/cpprb/*.html emacs: image: iquiw/alpine-emacs Loading Loading @@ -87,7 +59,6 @@ hugo: image: registry.gitlab.com/pages/hugo:latest stage: page_build variables: <<: *global-variables GIT_SUBMODULE_STRATEGY: recursive environment: production script: Loading @@ -103,7 +74,7 @@ hugo: - schedules sphinx: image: *dev_image <<: *build_env stage: page_build environment: production script: Loading @@ -124,7 +95,7 @@ pages: environment: production script: - mkdir -p public/annotation - mv cpprb/*.html public/annotation/ - mv src/cpprb/*.html public/annotation/ artifacts: paths: - public Loading Loading
.gitlab-ci.yml +15 −44 Original line number Diff line number Diff line variables: &global-variables CXX: "g++ -std=c++17 -O3 -march=native -Wall -Wextra -Icpprb -pthread" CC: "g++ -std=c++17 -O3 -march=native -Wall -Wextra -Icpprb -pthread" DOCKER_BUILDKIT: 1 GIT_DEPTH: 10 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" stages: - build_image - export_org - build - page_build - page_deploy .job_template: &setup image: &dev_image $CI_REGISTRY_IMAGE/build:latest before_script: - g++ --version - python3 --version except: - schedules docker_build: image: docker:latest stage: build_image services: - docker:dind script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull $CI_REGISTRY_IMAGE/build:latest || true - docker build --pull=true --cache-from $CI_REGISTRY_IMAGE/build:latest -t $CI_REGISTRY_IMAGE/build:latest . - docker push $CI_REGISTRY_IMAGE/build:latest rules: - if: '$CI_PIPELINE_SOURCE == "schedule"' when: always - if: '$CI_PIPELINE_SOURCE != "schedule"' when: manual allow_failure: true .build_template: &build_env image: python:3.12 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" cache: - key: files: - pyproject.toml - setup.py paths: - "$PIP_CACHE_DIR" cpprb_build: image: python:3.12 <<: *build_env stage: build needs: - README_MD variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" script: - pip wheel -w dist --no-deps artifacts: paths: - dist/*.whl cache: - key: files: - pyproject.toml - setup.py paths: - "$PIP_CACHE_DIR" - src/cpprb/*.html emacs: image: iquiw/alpine-emacs Loading Loading @@ -87,7 +59,6 @@ hugo: image: registry.gitlab.com/pages/hugo:latest stage: page_build variables: <<: *global-variables GIT_SUBMODULE_STRATEGY: recursive environment: production script: Loading @@ -103,7 +74,7 @@ hugo: - schedules sphinx: image: *dev_image <<: *build_env stage: page_build environment: production script: Loading @@ -124,7 +95,7 @@ pages: environment: production script: - mkdir -p public/annotation - mv cpprb/*.html public/annotation/ - mv src/cpprb/*.html public/annotation/ artifacts: paths: - public Loading