Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.81 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.81 KB

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