Debian Codegraph @

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

raw symbols SCIP
1 # Copyright (c) The mlkem-native project authors
2 # Copyright (c) The mldsa-native project authors
3 # SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
4
5 name: Setup OS
6 description: Setup OS
7
8 inputs:
9 packages:
10 description: Space-separated list of additional packages to install
11 required: false
12 default: ''
13 sudo:
14 required: false
15 default: 'sudo'
16
17 runs:
18 using: composite
19 steps:
20 - name: Detect OS
21 shell: bash
22 run: |
23 if (which yum > /dev/null); then
24 echo PKG="yum" >> $GITHUB_ENV
25 elif (which brew > /dev/null); then
26 echo PKG="brew" >> $GITHUB_ENV
27 elif (which apt > /dev/null); then
28 echo PKG="apt" >> $GITHUB_ENV
29 fi
30 - name: Setup via yum
31 if: ${{ env.PKG == 'yum' }}
32 uses: ./.github/actions/setup-yum
33 with:
34 packages: ${{ inputs.packages }}
35 sudo: ${{ inputs.sudo }}
36 - name: Setup via apt
37 if: ${{ env.PKG == 'apt' }}
38 uses: ./.github/actions/setup-apt
39 with:
40 packages: ${{ inputs.packages }}
41 sudo: ${{ inputs.sudo }}
42 - name: Setup via brew
43 if: ${{ env.PKG == 'brew' }}
44 uses: ./.github/actions/setup-brew
45 with:
46 packages: ${{ inputs.packages }}
47 sudo: ${{ inputs.sudo }}