Skip to content
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
22 changes: 0 additions & 22 deletions .cargo-husky/hooks/pre-commit

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Treat the carriage return in the repository's existing CRLF files as EOL,
# while retaining Git's standard trailing-whitespace checks.
* whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
27 changes: 6 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: i686-pc-windows-msvc
components: rustfmt, clippy
- name: Install repository toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Cache cargo
uses: actions/cache@v4
- name: Prek checks
uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
prek-version: "0.4.11"

- name: Build
run: cargo build --release --target i686-pc-windows-msvc

- name: Check formatting
run: cargo fmt --check

- name: Clippy
run: cargo clippy --target i686-pc-windows-msvc -- -D warnings

run: cargo build --locked --release
19 changes: 3 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,15 @@ jobs:
git tag ${{ steps.tag.outputs.tag }}
git push origin ${{ steps.tag.outputs.tag }}

- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: i686-pc-windows-msvc

- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install repository toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Build
run: cargo build --release --target i686-pc-windows-msvc
run: cargo build --locked --release

- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.tag }}
files: target/i686-pc-windows-msvc/release/systemdetection.dll
generate_release_notes: true

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
*.exp
*.lib

# Local runtime settings and diagnostics
fc2-systemdetection.ini
fc2-systemdetection.log

# IDA Pro files
*.i64
*.id0
Expand Down
218 changes: 20 additions & 198 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading