代码拉取完成,页面将自动刷新
同步操作将从 MindSpore/mindquantum 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Requires at least Gitlab 12.5
# NB: this is mainly shown for illustration purposes and is not actively maintained.
---
include: .gitlab/hashes.yml
variables:
CMAKE_VERSION: 3.22.3
GIT_SSL_NO_VERIFY: "true"
# ==============================================================================
.setup_apt: &setup_apt
- mkdir -p ${CI_PROJECT_DIR}/cache/apt/archives/partial
- echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/01-keep-debs
- echo 'Acquire::http::Proxy "http://172.17.0.1:3128";' > /etc/apt/apt.conf.d/02-proxy
- echo "Dir::Cache ${CI_PROJECT_DIR}/cache/apt;" > /etc/apt/apt.conf.d/03-cache-debs
- echo 'deb http://debian.ethz.ch/debian bullseye main' > /etc/apt/sources.list
- echo 'deb http://debian.ethz.ch/debian-security bullseye-security main' >> /etc/apt/sources.list
- echo 'deb http://debian.ethz.ch/debian bullseye-updates main' >> /etc/apt/sources.list
.setup_python: &setup_python
- echo -e "[global]\ncache-dir = ${CI_PROJECT_DIR}/cache/pip" > /usr/pip.conf
.install_packages: &install_packages
- >-
apt-get update && apt-get install -y python3-dev python3-pip
python3-setuptools python3-wheel python3-venv libboost-filesystem-dev ccache
--no-install-recommends
.setup_ccache: &setup_ccache
- which ccache
- ccache --help
- ccache --set-config=cache_dir="${CI_PROJECT_DIR}/cache/ccache"
- ccache --set-config=max_size=100M
- ccache --set-config=compression=true
- ccache -pz
- ccache -sv
.default_script_unix: &default_script_unix
- >-
./build_locally.sh --cxx --debug-cmake --test --ccache
--configure-only -c --clean-3rdparty --prefix=$PWD/install
- ./build_locally.sh --cxx --debug-cmake --test --ccache
- ./build_locally.sh --install # NB: no need to pass the other parameters
.cache_paths:
paths: &cache_paths
- build/.mqlibs
- cache
- venv
# ==============================================================================
default:
before_script:
- env
- *setup_apt
- *setup_python
- *install_packages
- *setup_ccache
after_script:
- ccache -sv
# ==============================================================================
gcc:
image: gcc:${GCC}
inherit:
default: true
parallel:
matrix:
- GCC: [7, 9]
cache:
key: gcc-${GCC}-${OVERALL_HASH}
paths: *cache_paths
script:
- *default_script_unix
clang:
image: silkeh/clang:${CLANG}
inherit:
default: true
parallel:
matrix:
- CLANG: [7, 10]
cache:
key: clang-${clang}-${OVERALL_HASH}
paths: *cache_paths
variables:
CC: clang
CXX: clang++
script:
- *default_script_unix
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。