Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Flowcrafter-managed workflows #234

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/flowcrafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library:

Check warning on line 1 in .github/flowcrafter.yml

View workflow job for this annotation

GitHub Actions / Lint code

1:1 [document-start] missing document start "---"
github:
instance: https://api.github.com/
owner: jdno
repository: workflows
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:
name: Publish crate
runs-on: ubuntu-latest

container:
image: ghcr.io/jdno/rust:main

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- uses: actions-rs/cargo@v1
with:
command: publish
args: -v --all-features
- name: Publish crate
run: cargo publish -v --all-features
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

- name: Print changed files
run: |
for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do

Check warning on line 36 in .github/workflows/rust.yml

View workflow job for this annotation

GitHub Actions / Lint code

36:81 [line-length] line too long (87 > 80 characters)
echo "$file"
done

Expand All @@ -44,16 +44,16 @@
needs: detect-changes
if: needs.detect-changes.outputs.any_changed == 'true'

container:
image: ghcr.io/jdno/rust:main

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache build artifacts
uses: swatinem/rust-cache@v2.5.0

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

Expand All @@ -64,13 +64,13 @@
needs: detect-changes
if: needs.detect-changes.outputs.any_changed == 'true'

container:
image: ghcr.io/jdno/rust:main

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Run Rustfmt
run: cargo fmt --all -- --check

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
uses: tj-actions/changed-files@v37
with:
files: |
**/*.yml
**/*.yaml
**/*.yml

- name: Print changed files
run: |
for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do

Check warning on line 32 in .github/workflows/yaml.yml

View workflow job for this annotation

GitHub Actions / Lint code

32:81 [line-length] line too long (87 > 80 characters)
echo "$file"
done

Expand Down
Loading