From a6900f1bf73aba081e3429131d520014dda07d31 Mon Sep 17 00:00:00 2001 From: strasdat Date: Fri, 10 Nov 2023 23:33:28 +0000 Subject: [PATCH] exp: adding arm64 linux runner / release --- .github/workflows/release.yml | 22 ++++++++++++---- scripts/install_deps_ubuntu2204.sh | 40 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 5 deletions(-) create mode 100755 scripts/install_deps_ubuntu2204.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 798ca7db..ffd17070 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,10 +36,16 @@ jobs: build_assets: name: Build Release Assets needs: create_release - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.runner }} strategy: matrix: - os: [ubuntu-20.04] + include: + - runner: ubuntu-20.04 + os: ubuntu-20.04 + arch: amd64 + - runner: self-hosted + os: ubuntu-22.04 + arch: arm64 fail-fast: false steps: @@ -47,10 +53,16 @@ jobs: - uses: hendrikmuhs/ccache-action@v1 - - name: Install system dependencies (Ubuntu) + - name: Install system dependencies (Ubuntu 20.04) run: ./scripts/install_deps_ubuntu.sh if: matrix.os == 'ubuntu-20.04' + + - name: Install system dependencies (Ubuntu 22.04) + run: ./scripts/install_deps_ubuntu2204.sh + if: matrix.os == 'ubuntu-22.04' + + - name: Install venv dependencies run: ./scripts/build_venv/build_venv.sh @@ -65,6 +77,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_name: venv-${{ matrix.os }}.tar.gz - asset_path: venv-${{ matrix.os }}.tar.gz + asset_name: venv-${{ matrix.os }}-{{ matrix.arch }}.tar.gz + asset_path: venv-${{ matrix.os }}-{{ matrix.arch }}.tar.gz asset_content_type: application/x-tar diff --git a/scripts/install_deps_ubuntu2204.sh b/scripts/install_deps_ubuntu2204.sh new file mode 100755 index 00000000..11b2075f --- /dev/null +++ b/scripts/install_deps_ubuntu2204.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +set -x # echo on +set -e # exit on error + +cmake --version + +sudo apt-get -qq update +# Please keep this list sorted. +sudo apt-get -y install \ + build-essential \ + ccache \ + clang \ + clang-tidy \ + cmake \ + curl \ + gfortran \ + libassimp-dev \ + libatlas-base-dev \ + libavcodec-dev \ + libavdevice-dev \ + libavformat-dev \ + libavutil-dev \ + libc++-dev \ + libcrypto++-dev \ + libegl1-mesa-dev \ + libglew-dev \ + libglm-dev \ + libgoogle-glog-dev \ + libgtest-dev \ + libopencv-dev \ + libssl-dev \ + libstdc++-10-dev \ + libsuitesparse-dev \ + libswscale-dev \ + libtiff-dev \ + ninja-build \ + python3-dev \ + python3.11-venv \ + && sudo apt-get clean