我正在尝试将github ci扩展到windows。
ci的一个步骤是通过托管在服务器上的脚本安装本地注册表。
github的操作是:
- name: Install local registry
run: |
if [ "$RUNNER_OS" != "Windows" ]; then
curl -fsSL https://remote-location/script.sh | /bin/bash -s -- -b main
fi
shell: bash
- name: install local registry on windows
if: matrix.os == 'windows-latest'
run: |
curl -fsSL https://remote-location/script.sh | /bin/bash -s -- -b main
on mac/linux I run
curl -fsSL https://remote-location/script.sh | /bin/bash -s -- -b main
该脚本基本上克隆了django api的主要分支,然后运行其他命令,如
python3 -m venv "$HOME"/venv
source "$HOME"/venv/bin/activate
python -m pip install --upgrade pip wheel
python -m pip install -r "$HOME"/requirements.txt
export DJANGO_SETTINGS_MODULE="ssss"
export DJANGO_SUPERUSER_USERNAME=xxxx
export DJANGO_SUPERUSER_PASSWORD=xxx
cd "$HOME"/scripts || exit
./local_script.sh
此命令无法在windows上运行。我无法访问远程脚本。
我想知道是否有办法让它在github ci/windows最新版本上运行。
我正在尝试在windows虚拟机上消除它的bug,但许多命令不是本机安装的。