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

Use native package managers #106

Closed
shenxianpeng opened this issue Oct 6, 2022 · 0 comments · Fixed by #116
Closed

Use native package managers #106

shenxianpeng opened this issue Oct 6, 2022 · 0 comments · Fixed by #116
Labels
enhancement New feature or request

Comments

@shenxianpeng
Copy link
Collaborator

Originally posted by @2bndy5 in this thread cpp-linter/clang-tools-pip#32

Found out that we could use chocolatey to install LLVM binaries on Windows runners https://community.chocolatey.org/packages/llvm#versionhistory
The pkg manager chocolatey is already installed on the Windows runners.

Not sure about the future of this pkg since we could use

  • choco for Windows,
  • apt for Linux,
  • and what could be used for Mac? Maybe homebrew? I don't give Apple any of my money, so I have no way to test homebrew locally.

All of these pkg managers could be used directly in the composite action's steps.

steps:
   - name: Install Binaries (Linux)
     if: runner.os == 'Linux'
     run: sudo apt-get install clang-tidy-${{ inputs.version }} clang-format-${{ inputs.version }}
   - name: Install Binaries (Windows)
     if: runner.os == 'Windows'
     # this may require the full version tag (`12.0.0` instead of `12`)
     run: choco install llvm --version ${{ inputs.version }} -y
   - name: Install Binaries (macOS)
     if: runner.os == 'macOS'
     # TBD
     run: homebrew install ???
@shenxianpeng shenxianpeng added the enhancement New feature or request label Oct 6, 2022
@2bndy5 2bndy5 changed the title Use native binaries when available Use native package managers Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant