Загрузите последние артефакты из Cirrus CI
Я пытаюсь загрузить последние артефакты сборки Cirrus CI из репозитория Github, и, согласно документации , это
https://api.cirrus-ci.com/v1/artifact/github/<USER OR ORGANIZATION>/<REPOSITORY>/<TASK NAME OR ALIAS>/<ARTIFACTS_NAME>/<PATH>
.
Применяя его к https://github.com/SDP-Rock-Paper-Scissors/RockPaperScissors , я получаю https://api.cirrus-ci.com/v1/artifact/github/SDP-Rock-Paper-Scissors/RockPaperScissors. /check_android/jacoco_coverage/app/build/reports/jacoco/jacocoTestReport/html/index.html , но это не работает, я делаю что-то не так?
1 ответ
Добавьте псевдоним в свою задачу и загрузите его по псевдониму.
wheel_macos_arm_task:
only_if: $CIRRUS_BRANCH == 'master'
name: macosx • Apple Silicon
alias: wheel_macos_arm
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode
env:
PATH: /opt/homebrew/opt/python@3.10/bin:$PATH
install_pre_requirements_script:
- brew install python@3.10
- ln -s python3 /opt/homebrew/opt/python@3.10/bin/python
install_cibuildwheel_script:
- python -m pip install cibuildwheel==2.11.4
run_cibuildwheel_script:
- cibuildwheel
wheels_artifacts:
path: "wheelhouse/*"
https://api.cirrus-ci.com/v1/artifact/github/GITHUB_USERNAME/PROJECT_NAME/wheel_macos_arm/wheels.zip