Skip to content
play

GitHub Action

Setup Spice environment

v1.0.11 Latest version

Setup Spice environment

play

Setup Spice environment

Setup a Spice environment and add it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Spice environment

uses: spicelang/spice-setup-action@v1.0.11

Learn more about this action in spicelang/spice-setup-action

Choose a version

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.6 # 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.6' ]
    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