Skip to content

Automate versioning with GitHub actions #462

Automate versioning with GitHub actions

Automate versioning with GitHub actions #462

Workflow file for this run

name: 🐧 Linux
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
branch:
description: "Branch to run CI on"
required: false
default: main
jobs:
build:
name: ${{ matrix.config.name }} - Build and test
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: "Ubuntu g++", os: ubuntu-latest, compiler: "g++" }
- { name: "Ubuntu clang++", os: ubuntu-latest, compiler: "clang++" }
steps:
- name: Checkout atta
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.ref_name }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake xorg-dev curl
- name: Build
run: ./build.sh --jobs 2 --compiler ${{ matrix.config.compiler }}
- name: Test
run: ctest
working-directory: build/release