Bump impeller-cmake to 8850119c4b1d191a31763412c1bde1b942705891 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
build: | |
name: Build ${{ matrix.target }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Fetch dependencies | |
run: ./deps.sh | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "15" | |
- name: Get cmake and ninja | |
uses: lukka/get-cmake@v3.26.0 | |
with: | |
cmakeVersion: 3.26.0 | |
ninjaVersion: 1.11.1 | |
# The clang build installed above links libtinfo5, but it's missing from the current | |
# ubuntu-latest image. | |
- name: Install Ubuntu package dependencies | |
run: | | |
sudo apt install -y libtinfo5 \ | |
mesa-common-dev libgl1-mesa-dev libgles2-mesa-dev \ | |
libxrandr2 libxrandr-dev \ | |
libxinerama1 libxinerama-dev \ | |
libxcursor1 libxcursor-dev \ | |
libxi6 libxi-dev \ | |
libxext6 libxext-dev \ | |
libx11-6 libx11-dev \ | |
libxrender1 libxrender-dev \ | |
libxfixes3 libxfixes-dev | |
if: matrix.os == 'ubuntu-latest' | |
- name: Configure CMake | |
run: cmake --preset ninja-debug-clang | |
- name: Build | |
run: | | |
cmake --build ${{github.workspace}}/out/build/ninja-debug \ | |
--target example |