constellation/.github/actions/setup_linux/action.yml
renovate[bot] bec82c2328
deps: update GitHub action dependencies (#1112)
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-01-31 17:38:44 +01:00

58 lines
1.7 KiB
YAML

name: Setup Linux build environment
description: "Setup a Linux Build environment (for self-hosted runners)"
runs:
using: "composite"
steps:
- name: Setup custom apt repositories (azure-cli & yq)
shell: bash
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor |
sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
AZ_REPO=$(lsb_release -cs)
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
sudo add-apt-repository ppa:rmescandon/yq
- name: Update apt repository information
shell: bash
run: |
sudo apt-get update
- name: Install build-essential & CMake
shell: bash
run: |
sudo apt-get install \
build-essential cmake \
-y
- name: Install curl gpg
shell: bash
run: |
sudo apt-get install curl gpg -y
- name: Install yq jq
shell: bash
run: |
sudo apt-get install yq jq -y
- name: Install AWS CLI
shell: bash
run: |
sudo apt-get -y install awscli
- name: Install az CLI
shell: bash
run: |
sudo apt-get install azure-cli -y
- name: Set up gcloud CLI
uses: google-github-actions/setup-gcloud@d51b5346f85640ec2aa2fa057354d2b82c2fcbce # v1.0.1
- name: Set up Docker Buildx
id: docker-setup
uses: docker/setup-buildx-action@15c905b16b06416d2086efa066dd8e3a35cc7f98 # v2.4.0