Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.4 KB

Install Singularity Action

https://www.sylabs.io/guides/latest/user-guide

Usage

The action has the following variables:

Name Description Required Default
singularity-version release version of sylabs/singularity to install false 3.10.4
go-version version or range to provide to actions/setup-go false '>=1.17.0'
cleanup cleanup archive extracted to /tmp false true

And you can use as follows:

name: Build Singularity
on:
  pull_request: []

jobs:
  install-singularity:
    name: Install Singularity
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3
      - name: Singularity install with defaults
        uses: singularityhub/install-singularity@main

  install-singularity-custom:
    name: Install Singularity Custom
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3
      - name: Singularity install with defaults
        uses: singularityhub/install-singularity@main
        with:
          singularity-version: '3.10.1'
          go-version: '1.18.0'

See the action.yaml for details.