Skip to content

CI

CI #544

Workflow file for this run

name: CI
on:
push:
# Run on the main branch
branches:
- main
- release/*
# Also on PRs, just be careful not to publish anything
pull_request:
# Allow to be called from other workflows (like "release")
workflow_call:
# Required for merge queue check
merge_group:
types:
- checks_requested
jobs:
common:
uses: scm-rs/shared-workflows/.github/workflows/ci.yaml@main
with:
preflight_install: |
sudo apt install clang llvm pkg-config nettle-dev
preflight_semver_exclude: csaf-cli,sbom-cli,walker-extras # drop walker-extras later
preflight_semver_feature_group: default-features
preflight_semver_features: _semver # use specific feature for semver checks
matrix_include: |
[
{
"os": "ubuntu-22.04",
"install": "sudo apt install clang llvm pkg-config nettle-dev"
},
{
"os": "windows-2022",
"args": "--features crypto-cng --no-default-features",
"skip_all_features": true
},
{
"os": "macos-14",
"skip_all_features": true
}
]
ci:
runs-on: ubuntu-latest
needs:
- common
if: always()
steps:
- name: Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1