напиши скрипт для github actions по данному примеру для запуска макос, но ещё и чтобы на…
- User
напиши скрипт для github actions по данному примеру для запуска макос, но ещё и чтобы на нем был установлен anydesk и выдавался id anydesk`a чтобы я мог подключиться с виндовс 10 на макос, скрипт должен работать 6 часов.
Create a folder $ mkdir actions-runner && cd actions-runner
Download the latest runner package $ curl -o actions-runner-osx-x64-2.319.1.tar.gz -L https://github.com/actions/runner/releases/download/v2.319.1/actions-runner-osx-x64-2.319.1.tar.gz
Optional: Validate the hash $ echo "e0987bc1c2b71e732a0e7963a8a6de64fe3be2a282122c23c52b83d7cebfafdb actions-runner-osx-x64-2.319.1.tar.gz" | shasum -a 256 -c
Extract the installer $ tar xzf ./actions-runner-osx-x64-2.319.1.tar.gz Configure
Create the runner and start the configuration experience $ ./config.sh --url https://github.com/Alex444h/lukuyjrtyrert543 --token BD2LVWNIE2IAZIQABQUP7EDG7QPWK
Last step, run it! $ ./run.sh Using your self-hosted runner
Use this YAML in your workflow file for each job runs-on: self-hosted
- Assistant
To create a GitHub Actions workflow script that sets up a macOS runner, installs AnyDesk, retrieves its ID, and runs for 6 hours, you can use the following YAML configuration. Note, however, that due to GitHub Actions' limitations and security policy, it's challenging to directly interact with the desktop environment or install GUI-based software like AnyDesk. Here's a conceptual construct:
- User
==> Tapping anydesk/tap Cloning into '/opt/homebrew/Library/Taps/anydesk/homebrew-tap'... fatal: could not read Username for 'https://github.com': Device not configured Error: Failure while executing;
git clone https://github.com/anydesk/homebrew-tap /opt/homebrew/Library/Taps/anydesk/homebrew-tap --origin=origin --template= --config core.fsmonitor=falseexited with 128. Error: Failure while executing;git clone https://github.com/anydesk/homebrew-tap /opt/homebrew/Library/Taps/anydesk/homebrew-tap --origin=origin --template= --config core.fsmonitor=falseexited with 128. Error: Process completed with exit code 1. - Assistant
- User
full right code
- Assistant
- User
скрипт мне не дал anydesk id и я не могу подключиться к макос через него
- Assistant
Понять, что вы ожидаете от взаимодействия с удалённой машиной через AnyDesk в среде GitHub Actions, важно, чтобы учитывать ограничения:
-
Ограничения GitHub Actions: GitHub Actions предоставляет CI/CD среду, которая работает в headless режиме (без графического интерфейса), что делает невозможным использование приложений, требующих GUI, таких как AnyDesk.
-
Ephemeral Runners: Надо учесть, что runners временные, и данные или конфигурации не сохраняются после завершения задачи. Это означает, что даже если бы установка AnyDesk и прошла успешно, вы получили бы новый экземпляр при следующем запуске без сохраненных данных.
-