Skip to content

Commit

Permalink
Merge pull request #2 from saying121/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
saying121 authored Jul 11, 2024
2 parents 126e567 + cf8d1f2 commit a777b5d
Show file tree
Hide file tree
Showing 12 changed files with 348 additions and 346 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Clippy

on: [push, pull_request, merge_group]

env:
RUST_BACKTRACE: 1

jobs:
clippy:
name: Clippy rust
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/checkout/@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- run: cargo clippy -- -D warnings
27 changes: 23 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ env:
PROJECT_NAME: tidy-browser

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Publish crate
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true

create-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -35,8 +52,10 @@ jobs:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Install jql
uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -156,10 +175,10 @@ jobs:
with:
ref: ${{ steps.get_baseline_sha.outputs.sha_tag }}

- name: Install Nightly Rust Toolchain
- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
toolchain: stable
targets: ${{ matrix.target }}

- name: Install cross-compilation tools
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test

on: [push, pull_request, merge_group]
on: [pull_request, merge_group]

env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -30,18 +30,3 @@ jobs:
- name: Run Test
run: |
cargo nextest run
clippy:
name: Clippy rust
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/checkout/@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- run: cargo clippy -- -D warnings
Loading

0 comments on commit a777b5d

Please sign in to comment.