Michael Chernigin ac294b87e9
ci: build and test using clang (#57)
* chore: add llvm-common to build container

* ci: run tests also on clang

* ci: run ci on all branches

* ci: fix if for clang

* fix: change package to llvm15.0

* chore: fix clang warning about assignment inside if
2023-08-21 15:59:25 +04:00

56 lines
1.3 KiB
YAML

name: gpui-ci
on:
workflow_dispatch:
workflow_call:
push:
branches: [ "*" ]
pull_request:
types: [ opened, synchronize, ready_for_review ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gpui-build-container:
uses: ./.github/workflows/build-container.yml
secrets: inherit
strategy:
matrix:
os: [ { distr: "alt:sisyphus", artifact: "sisyphus" } ]
architecture: [ amd64, i386 ]
with:
distr: ${{ matrix.os.distr }}
architecture: ${{ matrix.architecture }}
gpui-build:
uses: ./.github/workflows/build.yml
needs: [ gpui-build-container ]
secrets: inherit
strategy:
matrix:
os: [ { distr: "alt:sisyphus", artifact: "sisyphus" } ]
architecture: [ amd64, i386 ]
fail-fast: false
with:
artifact: ${{ matrix.os.artifact }}
architecture: ${{ matrix.architecture }}
gpui-test:
uses: ./.github/workflows/test.yml
needs: [ gpui-build-container ]
secrets: inherit
strategy:
matrix:
cpp-compiler: [ "gcc", "clang" ]
fail-fast: false
with:
architecture: "amd64"
cpp-compiler: ${{ matrix.cpp-compiler }}
gpui-publish-api-docs:
uses: ./.github/workflows/publish-api-docs.yml
needs: [ gpui-build, gpui-test ]
secrets: inherit