diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-01-17 08:36:37 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-01-17 08:36:37 -0500 |
| commit | cca735ce9cd574114635ac985b43f7f752b1c128 (patch) | |
| tree | 179b67433fceb738e1d75bb6310e55dfd42f805e /.github/actions/stasis_install | |
| parent | b60472548474ce36fef9eedb6a62fca631395090 (diff) | |
| download | ghasandbox-cca735ce9cd574114635ac985b43f7f752b1c128.tar.gz | |
OK
Diffstat (limited to '.github/actions/stasis_install')
| -rw-r--r-- | .github/actions/stasis_install/action.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/actions/stasis_install/action.yml b/.github/actions/stasis_install/action.yml new file mode 100644 index 0000000..fb61e49 --- /dev/null +++ b/.github/actions/stasis_install/action.yml @@ -0,0 +1,54 @@ +name: Install STASIS + +description: | + Installs STASIS + +inputs: + prefix: + type: string + description: STASIS installation prefix + required: false + default: "${{ github.workspace }}/.local" + + build_type: + type: string + description: | + Type of build: + Release, RelWithDebInfo, Debug, or MinSizeRel + required: false + default: "${{ github.workspace }}/.local" + +runs: + using: "composite" + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + repository: 'spacetelescope/stasis' + path: ${{ github.workspace }}/stasis + + - name: Install STASIS dependencies + run: | + sudo apt-get update + sudo apt-get install -y ca-certificates cmake libcurl4-openssl-dev libxml2-dev rsync + shell: bash + + - name: Install STASIS + run: | + rm -rf ${{ github.workspace }}/stasis/build + cd ${{ github.workspace }}/stasis + mkdir -p build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX="${{ inputs.prefix }}" \ + -DCMAKE_BUILD_TYPE="${{ inputs.build_type }}" + make + make install + echo "PATH=${{ inputs.prefix }}/bin:$PATH" >> $GITHUB_ENV + shell: bash + + - name: Remove STASIS source + run: | + rm -rf ${{ github.workspace }}/stasis + |
