Skip to content

Add disk space cleanup step to CI workflows #29

Add disk space cleanup step to CI workflows

Add disk space cleanup step to CI workflows #29

Workflow file for this run

name: Example Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
example-tests:
runs-on: ubuntu-24.04
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
- uses: actions/checkout@v5
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
ninja-build \
libgl1-mesa-dev \
libxkbcommon-dev \
libxcb-cursor0 \
"^libxcb.*-dev" \
libx11-xcb-dev \
libglu1-mesa-dev \
libxrender-dev \
libxi-dev \
libxkbcommon-x11-dev \
libegl1-mesa-dev \
libsm-dev \
autoconf \
autoconf-archive \
automake \
libtool \
libltdl-dev \
pkg-config \
python3
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: 'vcpkg.json'
- name: Configure CMake
run: cmake --preset linux-release
- name: Build
run: cmake --build --preset linux-release
- name: Run example tests
run: |
python3 scripts/compare_examples.py \
build/linux-release/source/strata \
example/