Skip to content

OpenCilk/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCilk GitHub actions

These actions build different OpenCilk components from source, so that other workflows can incorporate the actions as steps in their own workflows.

Usage: build-opencilk-project

The build-opencilk-project action checks out and builds the OpenCilk compiler.

- uses: OpenCilk/actions/build-opencilk-project@main
  with:
    # OpenCilk-compiler subprojects to build.
    # Default: 'clang'
    projects: ''

    # Ninja build target.
    # Default: 'all'
    build_target: ''

    # List of OS's to build for.
    os_list: ''

    # Extra arguments to pass to CMake.  See https://llvm.org/docs/CMake.html
    # for an overview of LLVM-specific CMake options.
    extra_cmake_args: ''

    # Python version to use.
    # Default: 3.11
    python_version: ''

This action outputs the build directory for opencilk-project into the variable opencilk-builddir.

Usage: build-cheetah

The build-cheetah action checks out and builds the OpenCilk runtime system.

- uses: OpenCilk/actions/build-cheetah@main
  with:
    # Path to the opencilk-project build directory.
    # Default: '$(pwd)/opencilk/build
    opencilk_build: ''

    # Ninja build target.
    # Default: 'all'
    build_target: ''

    # List of OS's to build for.
    os_list: ''

    # Extra arguments to pass to CMake.
    extra_cmake_args: ''

This action outputs the build directory for cheetah into the variable cheetah-builddir.

Example: Build opencilk-project and print its Clang version

- name: Setup OpenCilk compiler
  id: build-opencilk
  uses: OpenCilk/actions/build-opencilk-project@main
  with:
    projects: clang
- name: Print clang version
  run: ${{ steps.build-opencilk.outputs.opencilk-builddir }}/bin/clang --version

Example: Build opencilk-project and use it to buiild cheetah

- name: Setup OpenCilk compiler
  id: build-opencilk
  uses: OpenCilk/actions/build-opencilk-project@main
  with:
    projects: clang
- name: Build cheetah
  id: build-cheetah
  uses: OpenCilk/actions/build-cheetah@main
  with:
    opencilk_build: ${{ steps.build-opencilk.outputs.opencilk-builddir }}

About

GitHub actions for OpenCilk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published