1 Star 1 Fork 4.1K

阳光/mindquantum

forked from MindSpore/mindquantum 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 2.61 KB
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2023-05-04 11:05 . remote projectq totally
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fjddjdndjssj/mindquantum.git
git@gitee.com:fjddjdndjssj/mindquantum.git
fjddjdndjssj
mindquantum
mindquantum
master

搜索帮助