Skip to content

ci: Matrix Ubuntu build #3

ci: Matrix Ubuntu build

ci: Matrix Ubuntu build #3

Workflow file for this run

# Copyright (c) 2024, DyssolTEC GmbH.
# All rights reserved. This file is part of MUSEN framework http://msolids.net/musen.
# See LICENSE file for license and warranty information.
# A workflow for compilation on Linux
name: Ubuntu
on: [push]
jobs:
build:
name: ${{ matrix.name }}

Check failure on line 13 in .github/workflows/build_linux.yml

View workflow run for this annotation

GitHub Actions / Ubuntu

Invalid workflow file

The workflow is not valid. .github/workflows/build_linux.yml (Line: 13, Col: 5): Required property is missing: runs-on
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: sudo apt update && sudo apt upgrade && sudo apt install build-essential cmake zlib1g-dev libprotobuf-dev protobuf-compiler libqt5opengl5-dev nvidia-cuda-toolkit
- name: Create build environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Create install environment
run: cmake -E make_directory ${{github.workspace}}/install
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --parallel $(nproc)
- name: Install
working-directory: ${{github.workspace}}/build
shell: bash
run: make install