2022-09-14 09:14:26 -04:00
|
|
|
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
|
2023-01-19 05:22:31 -05:00
|
|
|
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc |
|
2022-09-14 09:14:26 -04:00
|
|
|
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
|
2023-01-18 04:15:58 -05:00
|
|
|
shell: bash
|
2022-09-14 09:14:26 -04:00
|
|
|
run: |
|
|
|
|
sudo apt-get install yq jq -y
|
|
|
|
|
|
|
|
- name: Install AWS CLI
|
2023-01-18 04:15:58 -05:00
|
|
|
shell: bash
|
2022-09-14 09:14:26 -04:00
|
|
|
run: |
|
|
|
|
sudo apt-get -y install awscli
|
|
|
|
|
|
|
|
- name: Install az CLI
|
2023-01-18 04:15:58 -05:00
|
|
|
shell: bash
|
2022-09-14 09:14:26 -04:00
|
|
|
run: |
|
|
|
|
sudo apt-get install azure-cli -y
|
|
|
|
|
|
|
|
- name: Set up gcloud CLI
|
2023-02-15 08:47:42 -05:00
|
|
|
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # v1.1.0
|
2022-09-14 09:14:26 -04:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: docker-setup
|
2023-03-22 12:57:47 -04:00
|
|
|
uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0
|