diff --git a/.cirrus.yml b/.cirrus.yml index 9e326b6b..4c8cd00f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,7 +1,7 @@ %YAML 1.1 --- -# Configuration for CirrusCI. This is primarily used for -# FreeBSD and macOS M1 tests and builds. +# Configuration for CirrusCI. This is primarily used for testing and building FreeBSD and macOS M1, since other +# CI platforms don't seem to support these platforms as of writing. # # We set the YAML directive above to prevent some linting errors around the # templates. @@ -42,6 +42,7 @@ env: test_task: auto_cancellation: false only_if: $CIRRUS_BUILD_SOURCE != "api" && ($CIRRUS_BRANCH == "master" || $CIRRUS_PR != "") + skip: "!changesInclude('.cargo/**', '.cirrus.yml', 'sample_configs/**', 'src/**', 'tests/**', 'build.rs', 'Cargo.lock', 'Cargo.toml', 'clippy.toml', 'rustfmt.toml')" matrix: - name: "FreeBSD 13 Test" freebsd_instance: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96575897..b8e1ae79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: uses: fkirc/skip-duplicate-actions@f11521568414503656a5af807dc3018c012552c4 # v5.2.0 with: skip_after_successful_duplicate: "true" - paths: '[".cargo/**", ".github/workflows/ci.yml", "sample_configs/**", "src/**", "tests/**", "build.rs", "Cargo.lock", "Cargo.toml", "clippy.toml", "rustfmt.toml"]' + paths: '[".cargo/**", ".github/workflows/ci.yml", "sample_configs/**", "src/**", "tests/**", "build.rs", "Cargo.lock", "Cargo.toml", "clippy.toml", "rustfmt.toml", "Cross.toml"]' do_not_skip: '["workflow_dispatch", "push"]' # Runs rustfmt + tests + clippy on the main supported platforms.