Skip to content

Commit

Permalink
Added buildcache for Ubuntu ARM.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jan 18, 2025
1 parent e3504f0 commit 16e6511
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
doxygen:
name: Doxygen
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
BUILDCACHE_ACCURACY: STRICT
BUILDCACHE_COMPRESS_FORMAT: ZSTD
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
path: ${{github.workspace}}/doxygen.tar.gz
llvm-clang:
name: LLVM+Clang tools
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
BUILDCACHE_ACCURACY: STRICT
BUILDCACHE_COMPRESS_FORMAT: ZSTD
Expand Down Expand Up @@ -78,3 +78,26 @@ jobs:
with:
name: LLVM+Clang tools
path: ${{github.workspace}}/clang*.tar.gz
buildcache:
name: buildcache
runs-on: ubuntu-22.04-arm
env:
BUILDCACHE_VERSION: 0.31.3
steps:
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: Build buildcache
run: |
wget https://gitlab.com/bits-n-bites/buildcache/-/archive/v${BUILDCACHE_VERSION}/buildcache-v${BUILDCACHE_VERSION}.tar.gz -O - | tar -xz
cd buildcache-v${BUILDCACHE_VERSION}
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../src
ninja
tar -cz buildcache -f ${{github.workspace}}/buildcache.tar.gz
ls -lh ${{github.workspace}}
- name: Upload buildcache artifact
uses: actions/upload-artifact@v4
with:
name: buildcache
path: ${{github.workspace}}/buildcache.tar.gz
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
This repository is used to build the various tools used by our GitHub Actions jobs on Ubuntu, which are:
This repository is used to build the various tools used by our GitHub Actions jobs on Ubuntu 22.04 Intel and Ubuntu 22.04 ARM, which are:

- `Doxygen <https://doxygen.nl/>`__; and some
- `LLVM <https://llvm.org/>`__\ +\ `Clang <https://clang.llvm.org/>`__ tools.
- `Doxygen <https://doxygen.nl/>`__ (Intel);
- some `LLVM <https://llvm.org/>`__\ +\ `Clang <https://clang.llvm.org/>`__ tools (Intel); and
- `buildcache <https://gitlab.com/bits-n-bites/buildcache>`__ (ARM).

These tools are automatically built and uploaded as artifacts upon pushing to this repository.
See `here <https://github.com/opencor/gha/blob/master/.github/workflows/cd.yml>`__ for the version of these tools.

0 comments on commit 16e6511

Please sign in to comment.