Skip to content

Commit

Permalink
exp: adding arm64 linux runner / release
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Nov 10, 2023
1 parent bc70436 commit 90c1bdb
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
with:
submodules: "recursive"
- name: ccache
uses: hendrikmuhs/ccache-action@v1
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.compiler }} - ${{ matrix.os }} - asan_ ${{ matrix.asan }}
- name: Install dependencies (Ubuntu)
working-directory: ./scripts
run: |
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,35 @@ 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:
- uses: actions/checkout@v3

- uses: hendrikmuhs/ccache-action@v1
- uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.arch }} - ${{ matrix.os }}

- 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

Expand All @@ -65,6 +79,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
2 changes: 1 addition & 1 deletion scripts/build_venv/build_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ cmake -B build.venv \
-G Ninja \
$DIR/.

cmake --build build.venv
ninja build.venv -j4
40 changes: 40 additions & 0 deletions scripts/install_deps_ubuntu2204.sh
Original file line number Diff line number Diff line change
@@ -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.10-venv \
&& sudo apt-get clean

0 comments on commit 90c1bdb

Please sign in to comment.