Skip to content

Commit

Permalink
Merge pull request #2 from SARDONYX-sard/feature/fix-sort
Browse files Browse the repository at this point in the history
Feature/fix sort
  • Loading branch information
SARDONYX-sard authored Aug 3, 2024
2 parents 5d12f8c + 22b6a98 commit 164b4cd
Show file tree
Hide file tree
Showing 744 changed files with 8,066 additions and 10,683 deletions.
49 changes: 39 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cargo Lint & Test
name: Build & Test(Cargo)

on:
push:
Expand All @@ -10,29 +10,59 @@ env:
APP_NAME: cvhkx

jobs:
build:
lint:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.7
- name: Rust cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@v2.7.3
with:
prefix-key: cargo-${{ matrix.platform }}
prefix-key: cargo-debug-${{ matrix.platform }}

- name: Format Check
- name: Check format
run: cargo fmt --all -- --check
- name: Lint Check
run: cargo clippy --workspace -- -D warnings

# The action only supports Linux.
- name: Check license, dependencies
if: runner.os == 'Linux'
uses: EmbarkStudios/cargo-deny-action@v2.0.0

test:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4.1.7
- name: Rust cache
uses: Swatinem/rust-cache@v2.7.3
with:
prefix-key: cargo-debug-${{ matrix.platform }}
- name: Test
run: cargo test --workspace

- name: Run build
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4.1.7
- name: Rust cache
uses: Swatinem/rust-cache@v2.7.3
with:
prefix-key: cargo-release-${{ matrix.platform }}

- name: Build
run: cargo build --release

- name: Make outputs dir
Expand All @@ -55,8 +85,7 @@ jobs:
mv ./target/release/${{ env.APP_NAME }} ./build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.4

uses: actions/upload-artifact@v4.3.5
with:
name: serde-hkx-cli-${{runner.os}}
path: |
Expand Down
Loading

0 comments on commit 164b4cd

Please sign in to comment.