Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile for os linux and macos #135

Merged
merged 5 commits into from
Aug 21, 2021
Merged

Makefile for os linux and macos #135

merged 5 commits into from
Aug 21, 2021

Conversation

dkorzhov
Copy link
Collaborator

No description provided.

Comment on lines +3 to +5
# Only run this when the master branch changes
on:
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это типа только на push или и на pr также будет срабатывать, а то не наблюдаю?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это типа только на push или и на pr также будет срабатывать, а то не наблюдаю?

не, это полностью ручной запуск.
добавил, чтобы можно было проверять работоспособность на серверах github.
этот код для использования на локальных машинах.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это типа только на push или и на pr также будет срабатывать, а то не наблюдаю?

не, это полностью ручной запуск.
добавил, чтобы можно было проверять работоспособность на серверах github.
этот код для использования на локальных машинах.

уточню, код не из этого workflow для локальных машин, а из makefile.
этот workflow просто для дополнительной прогонки на серверах, доп. проверка работоспособности кода из makefile. Но даже это не гарантирует, что у пользователей код заработает. Все зависит от ОС и установленных пакетов.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а почему внизу не видно что этот workflow запустился

Copy link
Collaborator Author

@dkorzhov dkorzhov Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а почему внизу не видно что этот workflow запустился

может не так понял вопрос, но пока этой джобы нет в мастер ветки, мы ее запустить не можем

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

увидел Only run this when the master branch changes
на pr в master не будет работать получается, только на push в master?

Copy link
Collaborator Author

@dkorzhov dkorzhov Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ссори за коммент, он не валидный
наде его удалить, пропустил
pr и push работать не будут, только ручной запуск

Copy link
Member

@vvssttkk vvssttkk Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а как запустить-то, а то в https://github.com/SemyonSinchenko/qmlcourse/actions не вижу для выбора?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это особенность, что запускается только из ветки, которая стоит как default.
Сейчас это master, поэтому надо сначала сделать merge этого PR.

Поэтому мне и удобнее в своем форке тестировать. Там я меняю ветки по умолчанию.

run:
shell: bash
strategy:
fail-fast: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а на что это влияет?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а на что это влияет?

если false и одна из джоб падает, вторая продолжает выполняться иначе сразу все прерываются


# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не особо пока догоняю что происходит в этой job-е. особенно что matrix.os определяется после, а не до вызова в runs-on, конечно если это именно оно

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не особо пока догоняю что происходит в этой job-е. особенно что matrix.os определяется после, а не до вызова в runs-on, конечно если это именно оно

в данном случае порядок значения не имеет, они находятся на одном уровне
этот участок отвечает за запуск кода на двух ОС, на это влияют настроки параметра strategy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а зачем тогда для определения ос использовать отдельную job-у, ведь это можно сделать в той, где что-то запускается через strategy после runs-on?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не совсем понял
у нас есть джоба, которая прогоняет билд на трех ОС с использованием операторов github actions. Ее назначение как я понял, было проверить сборку на трех ОС.
Эту джобу я просто добавил, чтобы технически проверять как локально отработает makefile. Я еще одну планирую добавить для Windows среды. В принципе, я могу и не выносить эти технически джобы.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

все норм, из-за комментариев не увидел расположение правильно быстрым взглядом

@vvssttkk
Copy link
Member

не хватает ещё конечно полного описания что же в конечном итоге делает makefile и как им пользоваться и где

@dkorzhov
Copy link
Collaborator Author

не хватает ещё конечно полного описания что же в конечном итоге делает makefile и как им пользоваться и где

Кратко я пока тут пояснил https://github.com/SemyonSinchenko/qmlcourse/issues/113#issuecomment-898873506
Ставим пакеты, запускаем make install-......, затем make build и как я понимаю, рузультат - это собранная книга на компе пользователя.
Надо определиться в какую инструкицю добаить эти пункты.

@vvssttkk
Copy link
Member

не хватает ещё конечно полного описания что же в конечном итоге делает makefile и как им пользоваться и где

Кратко я пока тут пояснил #113 (comment)
Ставим пакеты, запускаем make install-......, затем make build и как я понимаю, рузультат - это собранная книга на компе пользователя.
Надо определиться в какую инструкицю добаить эти пункты.

да, видел, но

  • описание в issue не считается, в главном readme можно создать отдельную главу где-то до bibtex
  • не полное описание, как минимум не хватает сразу списком показать какие есть возможности (install-python-dependencies..)

@@ -0,0 +1,27 @@
name: test-makefile-os-linux
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

немножко прикопаюсь к названию, внутри имеем os: [ubuntu-latest, macOS-latest] при этом называем -linux. или так норм?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я тоже думал, либо длинное название дать -ubuntu-macos, тоже не очень
либо как то обобщенно написать, но unix-like не очень)
поэтому оставил linux, криво, но на работоспособность не влияет)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше длинно, но точно описать что делается, нежели запутать

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

готово

Comment on lines +3 to +5
# Only run this when the master branch changes
on:
workflow_dispatch:
Copy link
Member

@vvssttkk vvssttkk Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а как запустить-то, а то в https://github.com/SemyonSinchenko/qmlcourse/actions не вижу для выбора?

@vvssttkk
Copy link
Member

тогда льем в master чтоли?

@vvssttkk vvssttkk merged commit dc81bbd into master Aug 21, 2021
@vvssttkk vvssttkk deleted the makefile-os-linux branch August 21, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Решить вопрос с установкой psi4
3 participants