From 53f2ea8e58a2c52ed93b0c44aac382077e9f7a92 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 7 Jun 2025 21:26:21 +0000 Subject: [PATCH] ci: Rename NEWS.md to RELEASE.md. ci: Build fewer packages in non-main branch. ci: Add lint phase for rust-check. Signed-off-by: Jason Volk --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ .github/workflows/main.yml | 4 ++-- .github/workflows/package.yml | 2 ++ NEWS.md => RELEASE.md | 0 4 files changed, 26 insertions(+), 2 deletions(-) rename NEWS.md => RELEASE.md (100%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e2a3b3b..b39c9392 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -125,6 +125,28 @@ jobs: excludes: ${{inputs.excludes}} includes: ${{inputs.includes}} + check: + if: > + !failure() && !cancelled() + && contains(fromJSON(inputs.cargo_profiles), fromJSON('["test"]')[0]) + && contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0]) + && contains(fromJSON(inputs.rust_toolchains), fromJSON('["nightly"]')[0]) + + name: Check + uses: ./.github/workflows/bake.yml + with: + bake_targets: '["check"]' + cargo_profiles: '["test"]' + feat_sets: '["all"]' + rust_toolchains: '["nightly"]' + sys_names: ${{inputs.sys_names}} + sys_versions: ${{inputs.sys_versions}} + rust_targets: ${{inputs.rust_targets}} + sys_targets: ${{inputs.sys_targets}} + machines: ${{inputs.machines}} + excludes: ${{inputs.excludes}} + includes: ${{inputs.includes}} + clippy: if: > !failure() && !cancelled() diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a78d9584..bf5cb40e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -85,7 +85,7 @@ jobs: with: release_name: Release ${{github.ref_name}} tag_name: ${{github.ref}} - body_path: NEWS.md + body_path: RELEASE.md draft: ${{ contains(github.ref, '-draft') }} prerelease: ${{ contains(github.ref, '-rc') }} @@ -203,7 +203,7 @@ jobs: !failure() && !cancelled() name: Publish - needs: [init, package, test] + needs: [init, test, package] uses: ./.github/workflows/publish.yml with: docker_repo: ${{vars.DOCKER_REPO}} diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 36c847ac..ffdadfd4 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -142,6 +142,7 @@ jobs: && contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0]) && contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0]) && contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0]) + && github.ref == 'refs/heads/main' name: Distro Packages uses: ./.github/workflows/bake.yml @@ -178,6 +179,7 @@ jobs: && contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0]) && contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0]) && contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0]) + && github.ref == 'refs/heads/main' && false name: Check Packages diff --git a/NEWS.md b/RELEASE.md similarity index 100% rename from NEWS.md rename to RELEASE.md