Skip to content

Conversation

@EvilBeaver
Copy link
Owner

No description provided.

with:
dotnet-version: 3.1.301
- name: Build
run: dotnet build ${{env.MAIN_PROJECT}} -c Release -r linux-x64 -f netcoreapp3.1
Copy link
Contributor

Choose a reason for hiding this comment

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

если команды отличаются только версией в релизах, то можно через матричный билд свести это к одной build-конфигурации.

Copy link
Owner Author

Choose a reason for hiding this comment

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

команды отличаются ключом -r (linux-x64 vs win-x64) но это наверное тоже можно сделать через матрицу. Только я не умею )

Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/1c-syntax/bsl-language-server/blob/develop/.github/workflows/release.yml#L11-L25

Смотри вот тут пример. Суть - в matrix на первом уровне есть перечисление os с доступными вариантами, а в include для каждого варианта os доустанавливаются дополнительные значения, например prefix. далее по коду воркфлоу ты можешь обращаться к этому значению через matrix.prefix https://github.com/1c-syntax/bsl-language-server/blob/develop/.github/workflows/release.yml#L79

@aliczin
Copy link

aliczin commented Nov 4, 2020

@EvilBeaver #79 - добавил PUBLISH к этому бранчу и портировал старый #75

@EvilBeaver EvilBeaver merged commit 7b265d3 into develop Nov 6, 2020
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.

5 participants