Skip to content

A GitHub Action to setup the DirectXShaderCompiler in the workflow.

License

Notifications You must be signed in to change notification settings

Timo-DK/setup-dxc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Napokue/setup-dxc

A GitHub Action to setup the DirectXShaderCompiler in the workflow.

This action will do the following steps:

  • Download the the zip file from the release page. Based on the input it will by default download the "latest" tagged release, otherwise it will download the specified tagged release.
  • Extract the zip file to the %ProgramW6432%\dxc directory.
  • Add the location of the bin folder of the compiler (%ProgramW6432%\dxc\bin\x64) to the PATH variable.
  • Add the location of the bin folder of the compiler (%ProgramW6432%\dxc\bin\x64) to the outputs.

Inputs

tag

Optional that will download a tagged DirectXShaderCompiler release. When not specified, the latest tag will be downloaded.

Outputs

dxc-path

Location of the dxc compiler. This location will be %ProgramW6432%\dxc\bin\x64.

Example Usage

- name: setup-dxc
  id: setup-dxc
  uses: napokue/[email protected] # where x.x.x is Major, Minor, and Revision respectively

# In the outputs, the variable "dxc-path" is available for use. This is the location of the dxc compiler.
- name: test-dxc-default
  run: |
    echo "setup-dxc-default - ${{steps.setup-dxc-default.outputs.dxc-path}}"
    dxc -help

About

A GitHub Action to setup the DirectXShaderCompiler in the workflow.

Resources

License

Stars

Watchers

Forks

Packages

No packages published