Skip to content

Commit

Permalink
chore(ci): try rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 28, 2024
1 parent efb59b2 commit 378058e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
45 changes: 35 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,48 @@
name: Rust

on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
push:
branches: [ "main" ]
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
fmt:
name: just fmt --check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: rui314/setup-mold@v1
- uses: taiki-e/install-action@just
- uses: mozilla-actions/sccache-action@v0.0.3
- run: just fmt --check

lint:
name: just lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: rui314/setup-mold@v1
- uses: taiki-e/install-action@just
- uses: mozilla-actions/sccache-action@v0.0.3
- run: just lint

build:
name: just build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: rui314/setup-mold@v1
- uses: taiki-e/install-action@just
- uses: mozilla-actions/sccache-action@v0.0.3
- run: just build
- uses: actions/upload-artifact@v4
with:
name: hatsu
path: target/release/hatsu
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ If you're not sure whether it's a Hatsu or Activitypub-Federation compatibility
- https://github.com/TechEmpower/FrameworkBenchmarks/issues/8501#issuecomment-1780275745
- sonic-rs (required nightly) / simd-json
- uuid-simd
- GitHub Actions
- [setup-mold](https://github.com/rui314/setup-mold)
- [sccache-action](https://github.com/Mozilla-Actions/sccache-action)

### Useful links

Expand Down

0 comments on commit 378058e

Please sign in to comment.