cserver/.github/actions/setup-compilers/action.yml
2024-07-06 23:40:12 +00:00

21 lines
No EOL
517 B
YAML

name: "Setup compilers"
description: "Setup compilers and build tools"
inputs:
clang:
required: false
default: "18"
gcc:
required: false
default: "14"
runs:
using: "composite"
steps:
- shell: bash
run: |
sudo apt update
sudo add-apt-repository universe multiverse
sudo apt update
sudo apt install gcc-${{ inputs.gcc }} g++-${{ inputs.gcc }}
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh ${{ inputs.clang }}