From de9c6cd278eb0bfbbb6df674a60c179bb696d6c3 Mon Sep 17 00:00:00 2001 From: wusatosi <26424577+wusatosi@users.noreply.github.com> Date: Wed, 19 Apr 2023 15:58:53 -0400 Subject: [PATCH] Install github ci on linux instance --- .github/workflows/autobuild.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 397818a..78bca23 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -170,15 +170,20 @@ jobs: - name: linux os: ubuntu-latest container: ubuntu:18.04 - preinstall: >- + preinstall: | apt-get update && - apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-9 - software-properties-common p7zip-full curl && + apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-9 software-properties-common p7zip-full curl && add-apt-repository ppa:git-core/ppa && wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && apt-get update && apt-get install -y git cmake + + # Install github cli for uploading artifacts, this is only needed on linux CI because we use container for linux + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && + chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && + apt update && apt install gh -y cflags: -O3 -gline-tables-only -DNDEBUG -include $GITHUB_WORKSPACE/.github/workflows/lib_compat.h cmake: >- "-DCMAKE_C_COMPILER=clang-9"