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 <jason@zemos.net>
This commit is contained in:
22
.github/workflows/lint.yml
vendored
22
.github/workflows/lint.yml
vendored
@@ -125,6 +125,28 @@ jobs:
|
|||||||
excludes: ${{inputs.excludes}}
|
excludes: ${{inputs.excludes}}
|
||||||
includes: ${{inputs.includes}}
|
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:
|
clippy:
|
||||||
if: >
|
if: >
|
||||||
!failure() && !cancelled()
|
!failure() && !cancelled()
|
||||||
|
|||||||
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
release_name: Release ${{github.ref_name}}
|
release_name: Release ${{github.ref_name}}
|
||||||
tag_name: ${{github.ref}}
|
tag_name: ${{github.ref}}
|
||||||
body_path: NEWS.md
|
body_path: RELEASE.md
|
||||||
draft: ${{ contains(github.ref, '-draft') }}
|
draft: ${{ contains(github.ref, '-draft') }}
|
||||||
prerelease: ${{ contains(github.ref, '-rc') }}
|
prerelease: ${{ contains(github.ref, '-rc') }}
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ jobs:
|
|||||||
!failure() && !cancelled()
|
!failure() && !cancelled()
|
||||||
|
|
||||||
name: Publish
|
name: Publish
|
||||||
needs: [init, package, test]
|
needs: [init, test, package]
|
||||||
uses: ./.github/workflows/publish.yml
|
uses: ./.github/workflows/publish.yml
|
||||||
with:
|
with:
|
||||||
docker_repo: ${{vars.DOCKER_REPO}}
|
docker_repo: ${{vars.DOCKER_REPO}}
|
||||||
|
|||||||
2
.github/workflows/package.yml
vendored
2
.github/workflows/package.yml
vendored
@@ -142,6 +142,7 @@ jobs:
|
|||||||
&& contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0])
|
&& contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0])
|
||||||
&& contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0])
|
&& contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0])
|
||||||
&& contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0])
|
&& contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0])
|
||||||
|
&& github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
name: Distro Packages
|
name: Distro Packages
|
||||||
uses: ./.github/workflows/bake.yml
|
uses: ./.github/workflows/bake.yml
|
||||||
@@ -178,6 +179,7 @@ jobs:
|
|||||||
&& contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0])
|
&& contains(fromJSON(inputs.feat_sets), fromJSON('["all"]')[0])
|
||||||
&& contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0])
|
&& contains(fromJSON(inputs.cargo_profiles), fromJSON('["release"]')[0])
|
||||||
&& contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0])
|
&& contains(fromJSON(inputs.rust_toolchains), fromJSON('["stable"]')[0])
|
||||||
|
&& github.ref == 'refs/heads/main'
|
||||||
&& false
|
&& false
|
||||||
|
|
||||||
name: Check Packages
|
name: Check Packages
|
||||||
|
|||||||
Reference in New Issue
Block a user