Skip to content

Commit

Permalink
Merge pull request #384 from kivikakk/unnix-in-ci
Browse files Browse the repository at this point in the history
un-Nix in CI.
  • Loading branch information
kivikakk authored Apr 28, 2024
2 parents cd272a7 + a4a05be commit 00ffbfe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 346 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Rust

on: [push, pull_request]


jobs:
build_test:
runs-on: ubuntu-latest
Expand All @@ -13,7 +12,7 @@ jobs:
- beta
- stable
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Obtain Rust
Expand All @@ -30,7 +29,7 @@ jobs:
- beta
- stable
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Obtain Rust
Expand All @@ -40,7 +39,7 @@ jobs:
build_wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Obtain Rust
Expand All @@ -60,7 +59,7 @@ jobs:
- beta
- stable
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Obtain Rust
Expand All @@ -70,7 +69,7 @@ jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Obtain Rust
Expand All @@ -79,16 +78,17 @@ jobs:
run: cargo +stable build --locked --release --all-features
clippy_format:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Obtain Rust
run: rustup override set ${{ matrix.rust }}
- name: Check clippy
run: nix build .#checks.x86_64-linux.comrak-clippy -L
run: rustup component add clippy && cargo clippy
- name: Check formatting
run: nix build .#checks.x86_64-linux.comrak-fmt -L
run: rustup component add rustfmt && cargo fmt -- --check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ benches/cmark-gfm
benches/comrak-*
benches/pulldown-cmark
benches/markdown-it
/result*
199 changes: 0 additions & 199 deletions flake.lock

This file was deleted.

Loading

0 comments on commit 00ffbfe

Please sign in to comment.