Skip to content

Commit

Permalink
Fix ci.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Feb 5, 2024
1 parent 6cdbc8b commit b178be6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,44 +84,12 @@ jobs:
- run: cargo clippy --no-deps --all-targets
- run: cargo hack --all --feature-powerset --no-dev-deps check

pr-info:
outputs:
is-release: ${{ steps.meta.outputs.is-release }}
crate: ${{ steps.meta.outputs.crates-names }}

runs-on: ubuntu-latest
steps:
- id: meta
if: github.event_name == 'pull_request'
uses: cargo-bins/release-meta@v1
with:
event-data: ${{ toJSON(github.event) }}
extract-notes-under: '### Release notes'

release-dry-run:
needs: pr-info
uses: ./.github/workflows/release-cli.yml
if: github.event_name != 'pull_request' || needs.pr-info.outputs.is-release == 'true'
secrets: inherit
with:
info: |
{
"is-release": false,
"crate": "${{ needs.pr-info.outputs.crate }}",
"version": "0.0.0",
"notes": ""
}
CARGO_PROFILE_RELEASE_LTO: no
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 4


# Dummy job to have a stable name for the "all tests pass" requirement
tests-pass:
name: Tests pass
needs:
- test
- lint
- release-dry-run
if: always() # always run even if dependencies fail
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b178be6

Please sign in to comment.