-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add cargo-nextest instead of cargo test - Add cargo doc and cargo test --doc - Add yamlfmt - Add merge_group and concurrency to CI - Create check-if-lib workflow - Add monthly releases workflow - Remove pre_release workflow and move the jobs to build_and_release.yaml
- Loading branch information
Showing
12 changed files
with
181 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Cargo If Lib | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
is_lib: | ||
value: ${{ jobs.check-if-lib.outputs.is_lib }} | ||
|
||
jobs: | ||
check-if-lib: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- name: Install jql | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: jql | ||
|
||
- name: Searching for lib | ||
id: searching | ||
run: | | ||
result=$(cargo metadata --format-version=1 --no-deps | jql '"packages"|>"targets"<|[0]|>"kind"' | jql '..' -i); | ||
echo "targets=$result" >> "$GITHUB_OUTPUT"; | ||
echo kind of targets $result; | ||
- name: print if skip cargo-semver-checks | ||
if: ${{ !contains(steps.searching.outputs.targets, 'lib') }} | ||
run: echo "cargo semver-check only works in libraries" | ||
|
||
outputs: | ||
is_lib: ${{ contains(steps.searching.outputs.targets, 'lib') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Monthly Releases | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build_and_release: | ||
uses: ./.github/workflows/build_and_release.yaml | ||
with: | ||
release_type: patch | ||
check-to-publish: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.