Debian Codegraph @

others/mbedtls/tf-psa-crypto/drivers/pqcp/mldsa-native/.github/actions/setup-oqs/action.yml

raw symbols SCIP
1 # Copyright (c) The mldsa-native project authors
2 # SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
3
4 name: Setup libOQS
5 description: Setup libOQS
6
7 inputs:
8 dir:
9 description: Directory to fetch libOQS into
10 default: 'libOQS'
11 repository:
12 description: Repository to fetch from
13 default: 'open-quantum-safe/libOQS'
14 commit:
15 description: Commit to fetch
16 default: 'HEAD'
17 gh_token:
18 description: Github access token to use
19 required: true
20
21 runs:
22 using: composite
23 steps:
24 - name: Fetch libOQS
25 shell: bash
26 run: |
27 mkdir ${{ inputs.dir }} && cd ${{ inputs.dir }}
28 git config --global --add safe.directory $GITHUB_WORKSPACE/${{ inputs.dir }}
29 git init
30 git remote add origin $GITHUB_SERVER_URL/${{ inputs.repository }}
31 git fetch origin --depth 1 ${{ inputs.commit }}
32 git checkout FETCH_HEAD
33
34 # Remember libOQS directory
35 echo LIBOQS_DIR="$GITHUB_WORKSPACE/${{ inputs.dir }}" >> $GITHUB_ENV