Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morgancaron/latest-clang-action
GitHub action to provide a precompiled version of LLVM Clang for continuous integration without having to recompile at each run.
https://github.com/morgancaron/latest-clang-action
clang cpp cpp20 cpp20-modules cpp23 llvm
Last synced: 9 days ago
JSON representation
GitHub action to provide a precompiled version of LLVM Clang for continuous integration without having to recompile at each run.
- Host: GitHub
- URL: https://github.com/morgancaron/latest-clang-action
- Owner: MorganCaron
- License: unlicense
- Created: 2024-02-27T09:22:33.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-03-06T16:48:08.000Z (11 months ago)
- Last Synced: 2024-11-28T09:44:20.156Z (2 months ago)
- Topics: clang, cpp, cpp20, cpp20-modules, cpp23, llvm
- Language: C++
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Latest Clang for Github Actions
GitHub action to provide a precompiled version of LLVM Clang for continuous integration without having to recompile at each run.![Github Stars](https://img.shields.io/github/stars/MorganCaron/clang-precompiled-action?style=for-the-badge)
![Github Forks](https://img.shields.io/github/forks/MorganCaron/clang-precompiled-action?style=for-the-badge)
[![Discord](https://img.shields.io/discord/268838260153909249?label=Chat&logo=Discord&style=for-the-badge)](https://discord.gg/mxZvun4)
[![License](https://img.shields.io/github/license/MorganCaron/clang-precompiled-action?style=for-the-badge)](https://github.com/MorganCaron/CppUtils/blob/master/LICENSE)### Project Health
![Build](https://img.shields.io/github/actions/workflow/status/MorganCaron/clang-precompiled-action/main.yml?style=for-the-badge&logo=linux&logoColor=white&label=Build)### Usage
```yml
name: "Build with latest Clang"on: [ push, pull_request ]
jobs:
build:
name: "Latest Clang"
steps:
- uses: actions/checkout@v4
- uses: MorganCaron/latest-clang-action@master- name: Compile
run: |
clang++ -o test test.cpp- name: Run
env:
LD_LIBRARY_PATH: ${{ github.workspace }}/llvm/lib/x86_64-unknown-linux-gnu
run: |
./test
```Or with [XMake](https://xmake.io/):
```yml
name: "Build with latest Clang"on: [ push, pull_request ]
jobs:
build:
name: "XMake + Latest Clang"
steps:
- uses: actions/checkout@v4
- uses: MorganCaron/latest-clang-action@master
- uses: xmake-io/github-action-setup-xmake@v1- name: Compile
run: |
xmake f --toolchain=llvm --sdk=llvm/
xmake build -vD- name: Run
env:
LD_LIBRARY_PATH: ${{ github.workspace }}/llvm/lib/x86_64-unknown-linux-gnu
run: |
xmake run
```