Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Setup Spice environment

v1.0.7

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.7

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@v3

  - name: Setup Spice
    uses: spicelang/spice-setup-action@v1
    with:
      spice-version: 0.16.1 # 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.15.0', '0.16.0' ]
    name: Setup Spice v${{ matrix.spice }}
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - 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-2023