Skip to content

MorganCaron/latest-clang-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Github Forks Discord License

Project Health

Build

Usage

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:

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

About

GitHub action to provide a precompiled version of LLVM Clang for continuous integration without having to recompile at each run.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages