[hw_ci] Disable proxy and ustc crates-io source on new machine

This commit is contained in:
Shaowei Song 2022-06-23 15:13:52 +08:00 committed by volcano
parent cec7474660
commit f704604e36

@ -43,22 +43,22 @@ runs:
run: docker exec ${{ env.CONTAINER_NAME }} bash -c "sed -r -i 's/PCCS_URL=https:\/\/localhost:8081\/sgx\/certification\/v3\//PCCS_URL=https:\/\/sgx-dcap-server.cn-shanghai.aliyuncs.com\/sgx\/certification\/v3\//g' /etc/sgx_default_qcnl.conf"
shell: bash
- name: Change download source of crates.io
run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "cat <<- EOF >/root/.cargo/config
[source.crates-io]
registry = \"https://github.com/rust-lang/crates.io-index\"
replace-with = 'ustc'
[source.ustc]
registry = \"git://mirrors.ustc.edu.cn/crates.io-index\"
EOF"
shell: bash
# - name: Change download source of crates.io
# run: |
# docker exec ${{ env.CONTAINER_NAME }} bash -c "cat <<- EOF >/root/.cargo/config
# [source.crates-io]
# registry = \"https://github.com/rust-lang/crates.io-index\"
# replace-with = 'ustc'
# [source.ustc]
# registry = \"git://mirrors.ustc.edu.cn/crates.io-index\"
# EOF"
# shell: bash
- name: Config git proxy
run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global http.proxy socks5://localhost:5432"
docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global https.proxy socks5://localhost:5432"
shell: bash
# - name: Config git proxy
# run: |
# docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global http.proxy socks5://localhost:5432"
# docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global https.proxy socks5://localhost:5432"
# shell: bash
- uses: ./.github/workflows/composite_action/prebuild
with: