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

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Setup Chemical Action

This GitHub Action installs the Chemical compiler and adds it to the system PATH. It is designed to be fast, cross-platform, and dependencies-free (only requires curl and git, which are standard on GitHub Runners).

Features

  • Fast Installation: Direct binary download and extraction.
  • Auto-Versioning: Automatically fetches and installs the latest stable release by default.
  • Cross-Platform: Support for ubuntu-latest and windows-latest.
  • Environment Integration: Automatically sets CHEMICAL_HOME and updates GITHUB_PATH.

Usage

Add this step to your workflow:

jobs:
  build:
    runs-on: ubuntu-latest # or windows-latest
    steps:
      - uses: actions/checkout@v4
      
      - name: Setup Chemical
        uses: chemicallang/install@v1.1 # or @main
        with:
          version: 'latest' # Optional: Specify a tag like 'v0.0.30'
          
      - name: Verify Installation
        run: chemical --version

Debug Build

To install a debug build with full symbols (useful for debugging compiler issues):

      - name: Setup Chemical (Debug)
        uses: chemicallang/install@main
        with:
          debug: 'true'

Inputs

Name Description Default
version The version of Chemical to install. Set to latest to automatically fetch the most recent release. latest
variant The variant of Chemical to install (e.g., tcc). (empty)
debug Download debug build with full symbols from chemicallang/chemical-debug. false

Environment Variables

This action sets the following environment variables for subsequent steps:

  • CHEMICAL_HOME: The path to the directory where Chemical is installed.
  • PATH: Updated to include the chemical binary.

Created by the Chemical Language Foundation.

About

Github action for downloading chemcial

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors