SILKIT-1650: Forward specific SIL Kit exceptions #565
Workflow file for this run
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: "CI for Pull Requests" | |
on: | |
pull_request: | |
branches: [ 'main' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-licenses: | |
name: License checks for SIL Kit sources | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Install Dependencies | |
id: dep-install | |
run: | | |
sudo apt install licensecheck | |
- name: Check Licenses | |
id: license-check | |
run: | | |
sh ./SilKit/ci/check_licenses.sh | |
shell: bash | |
check-run-builds: | |
runs-on: ubuntu-22.04 | |
outputs: | |
run_builds: ${{ steps.build_check.outputs.run_builds }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Check if build CI should run | |
id: build_check | |
run: | | |
if [[ ${{ github.event_name }} == 'push' ]];then \ | |
echo "run_builds=true" >> $GITHUB_OUTPUT; \ | |
else \ | |
python3 ./SilKit/ci/check_files_changed.py ${{ github.repository }} ${{ github.event.number }}; \ | |
fi | |
check-formatting: | |
name: Format checks for SIL Kit sources | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/vectorgrp/sil-kit-docker-build/sil-kit-ci-public-runner:main | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Check Formatting | |
id: formatting-check | |
run: | | |
python3 ./SilKit/ci/check_formatting.py | |
shell: bash | |
clang14-tsan: | |
name: Thread Sanitizer Tests | |
needs: [check-licenses, check-run-builds, check-formatting] | |
uses: ./.github/workflows/linux-tsan.yml | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
clang14-ubsan: | |
name: Undefined Behavior Sanitizer Tests | |
needs: [check-licenses, check-run-builds, check-formatting] | |
uses: ./.github/workflows/linux-ubsan.yml | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
clang14-asan: | |
name: Address Sanitizer Tests | |
needs: [check-licenses, check-run-builds, check-formatting] | |
uses: ./.github/workflows/linux-asan.yml | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
ubuntu-release-builds: | |
uses: ./.github/workflows/build-linux.yml | |
needs: [check-licenses, check-run-builds, check-formatting] | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
ubuntu-arm-release-builds: | |
uses: ./.github/workflows/build-linux-arm64.yml | |
needs: [check-licenses, check-run-builds, check-formatting] | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
windows-release-builds: | |
uses: ./.github/workflows/build-win.yml | |
needs: [check-licenses, check-run-builds, check-formatting] | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
mingw-release-builds: | |
uses: ./.github/workflows/build-mingw64.yml | |
needs: [check-licenses, check-run-builds, check-formatting] | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} | |
macos-release-builds: | |
uses: ./.github/workflows/build-macos.yml | |
needs: [check-licenses, check-run-builds, check-formatting] | |
with: | |
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }} |