@@ -93,29 +93,24 @@ jobs:
9393 submodules : true
9494 - uses : EmbarkStudios/cargo-deny-action@v2
9595
96- release-plz- dry-run :
97- name : Release-plz dry-run
96+ release-dry-run :
97+ name : Release dry-run
9898 runs-on : ubuntu-latest
99- permissions : {}
10099 steps :
101100 - uses : actions/checkout@v6
102101 with :
103- ref : ${{ github.head_ref }}
104- fetch-depth : 0
105- persist-credentials : false
106102 submodules : true
107- - name : Run release-plz
108- uses : release-plz/action@v0.5
109- with :
110- dry_run : true
111- env :
112- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103+ - name : install rust-toolchain
104+ run : echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
105+ - name : cargo fetch --locked
106+ run : cargo fetch --locked --target $TARGET
107+ - run : cargo publish --dry-run
113108
114109 # This allows us to have a single job we can branch protect on, rather than needing
115110 # to update the branch protection rules when the test matrix changes
116111 test_success :
117112 runs-on : ubuntu-24.04
118- needs : [lint, test, deny-check, release-plz- dry-run]
113+ needs : [lint, test, deny-check, release-dry-run]
119114 # Hack for buggy GitHub Actions behavior with skipped checks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
120115 if : ${{ always() }}
121116 steps :
@@ -125,7 +120,7 @@ jobs:
125120 [[ "${{ needs.lint.result }}" == "success" ]] || exit 1
126121 [[ "${{ needs.test.result }}" == "success" ]] || exit 1
127122 [[ "${{ needs.deny-check.result }}" == "success" ]] || exit 1
128- [[ "${{ needs.release-plz- dry-run.result }}" == "success" ]] || exit 1
123+ [[ "${{ needs.release-dry-run.result }}" == "success" ]] || exit 1
129124
130125defaults :
131126 run :
0 commit comments