mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-14 18:34:31 -05:00
58 lines
1.7 KiB
YAML
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 -sL 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
|
||
|
run: |
|
||
|
sudo apt-get install yq jq -y
|
||
|
shell: bash
|
||
|
|
||
|
- name: Install AWS CLI
|
||
|
run: |
|
||
|
sudo apt-get -y install awscli
|
||
|
shell: bash
|
||
|
|
||
|
- name: Install az CLI
|
||
|
run: |
|
||
|
sudo apt-get install azure-cli -y
|
||
|
shell: bash
|
||
|
|
||
|
- name: Set up gcloud CLI
|
||
|
uses: google-github-actions/setup-gcloud@877d4953d2c70a0ba7ef3290ae968eb24af233bb
|
||
|
|
||
|
- name: Set up Docker Buildx
|
||
|
id: docker-setup
|
||
|
uses: docker/setup-buildx-action@f211e3e9ded2d9377c8cadc4489a4e38014bc4c9
|