Skip to content

change release title #38

change release title

change release title #38

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
# cancel already running builds of the same branch or pull request
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: Build on ${{matrix.container}} (using ${{matrix.cc}})
runs-on: ubuntu-latest
container:
image: ${{matrix.container}}
volumes:
- /tmp/.cache
- /var/cache/apt
strategy:
fail-fast: false # don't cancel other jobs in the matrix if one fails
matrix:
container:
[
"debian:testing",
"fedora:latest",
"ubuntu:rolling",
"archlinux:latest",
]
cc: ["gcc"]
cxx: ["g++"]
include:
- container: "archlinux:latest"
cc: "clang"
cxx: "clang++"
env:
# Speed up build with ccache
CC: ccache ${{ matrix.cc }}
CXX: ccache ${{ matrix.cxx }}
CONTAINER: ${{ matrix.container }}
steps:
- name: Setup environment variables
shell: bash
run: |
split=(${CONTAINER//:/ })
distro=${split[0]}
short_sha=${SHA:0:8}
echo "DISTRO=$distro" | tee -a $GITHUB_ENV
- name: Install git command
shell: bash
run: |
echo "::group::Install git ..."
apt-get update -qq && apt-get install --assume-yes git || true
dnf update -y && dnf install -y git || true
pacman --noconfirm -Sy git || true
echo "::endgroup::"
- name: Repository checkout
uses: actions/checkout@v4
with:
submodules: "true"
- name: Install dependency packages
run: .github/workflows/${{ env.DISTRO }}.sh
- name: Enable ccache to speed up builds
uses: hendrikmuhs/[email protected]
with:
key: ${{ env.DISTRO }}-${{ matrix.cc }}
- name: Build the source code
run: .github/workflows/builds.sh