Skip to content

spicelang/spice-setup-action

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

Spice Logo

Spice Programming Language

GitHub Action to setup the Spice programming language on a runner instance.


This is the source code for the Spice Setup Action. This GH Action can be used to setup Spice on a CI runner instance.

Usage

For detailed configuration information see the action.yml file. Here are a few examples how to use it:

Basic

steps:
  - name: Checkout
    uses: actions/checkout@v4

  - name: Setup Spice
    uses: spicelang/spice-setup-action@v1
    with:
      spice-version: 0.19.3 # The Spice version to setup. If omitted, the latest version will be taken
      
  - run: spice run example.spice

Matrix Testing

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        spice: [ '0.19.0', '0.19.3' ]
    name: Setup Spice v${{ matrix.spice }}
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Spice v${{ matrix.spice }}
        uses: spicelang/spice-setup-action@v1
        with:
          spice-version: ${{ matrix.spice }}

      - run: spice run example.spice

Contribute to the project

If you want to contribute to this project, please ensure you comply with the contribution guidelines.

© ChilliBits 2021-2024