pnuke 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pnuke-0.1.1/.github/workflows/ci.yml +38 -0
- pnuke-0.1.1/.github/workflows/release.yml +89 -0
- pnuke-0.1.1/.gitignore +1 -0
- pnuke-0.1.1/Cargo.lock +2091 -0
- pnuke-0.1.1/Cargo.toml +25 -0
- pnuke-0.1.1/PKG-INFO +247 -0
- pnuke-0.1.1/README.md +229 -0
- pnuke-0.1.1/install.sh +30 -0
- pnuke-0.1.1/npm/README.md +229 -0
- pnuke-0.1.1/npm/bin/pnuke.js +29 -0
- pnuke-0.1.1/npm/package.json +37 -0
- pnuke-0.1.1/npm/scripts/install.js +87 -0
- pnuke-0.1.1/pyproject.toml +31 -0
- pnuke-0.1.1/src/engine.rs +263 -0
- pnuke-0.1.1/src/main.rs +305 -0
- pnuke-0.1.1/src/resolver.rs +177 -0
- pnuke-0.1.1/src/tui.rs +408 -0
- pnuke-0.1.1/src/types.rs +28 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main", "master" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main", "master" ]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
CARGO_TERM_COLOR: always
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
check:
|
|
14
|
+
name: Build & Test
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
22
|
+
- name: Cargo Build
|
|
23
|
+
run: cargo build --verbose
|
|
24
|
+
- name: Cargo Test
|
|
25
|
+
run: cargo test --verbose
|
|
26
|
+
|
|
27
|
+
lint:
|
|
28
|
+
name: Clippy & Format
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
33
|
+
with:
|
|
34
|
+
components: clippy, rustfmt
|
|
35
|
+
- name: Check Formatting
|
|
36
|
+
run: cargo fmt --all -- --check
|
|
37
|
+
- name: Run Clippy
|
|
38
|
+
run: cargo clippy -- -D warnings
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
CARGO_TERM_COLOR: always
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
build-binaries:
|
|
16
|
+
name: Build (${{ matrix.target }})
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
include:
|
|
22
|
+
- os: ubuntu-latest
|
|
23
|
+
target: x86_64-unknown-linux-gnu
|
|
24
|
+
archive_name: pnuke-${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz
|
|
25
|
+
- os: macos-latest
|
|
26
|
+
target: aarch64-apple-darwin
|
|
27
|
+
archive_name: pnuke-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
|
|
28
|
+
- os: macos-latest
|
|
29
|
+
target: x86_64-apple-darwin
|
|
30
|
+
archive_name: pnuke-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
|
|
31
|
+
- os: windows-latest
|
|
32
|
+
target: x86_64-pc-windows-msvc
|
|
33
|
+
archive_name: pnuke-${{ github.ref_name }}-x86_64-pc-windows-msvc.zip
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
38
|
+
with:
|
|
39
|
+
targets: ${{ matrix.target }}
|
|
40
|
+
|
|
41
|
+
- name: Build Binary
|
|
42
|
+
run: cargo build --release --target ${{ matrix.target }}
|
|
43
|
+
|
|
44
|
+
- name: Package Unix Archive (.tar.gz)
|
|
45
|
+
if: runner.os != 'Windows'
|
|
46
|
+
run: |
|
|
47
|
+
cd target/${{ matrix.target }}/release
|
|
48
|
+
tar -czf ../../../${{ matrix.archive_name }} pnuke
|
|
49
|
+
cd ../../..
|
|
50
|
+
shasum -a 256 ${{ matrix.archive_name }} > ${{ matrix.archive_name }}.sha256
|
|
51
|
+
|
|
52
|
+
- name: Package Windows Archive (.zip)
|
|
53
|
+
if: runner.os == 'Windows'
|
|
54
|
+
shell: pwsh
|
|
55
|
+
run: |
|
|
56
|
+
Compress-Archive -Path target/${{ matrix.target }}/release/pnuke.exe -DestinationPath ${{ matrix.archive_name }}
|
|
57
|
+
(Get-FileHash ${{ matrix.archive_name }} -Algorithm SHA256).Hash.ToLower() + " ${{ matrix.archive_name }}" | Out-File -FilePath "${{ matrix.archive_name }}.sha256" -Encoding ascii
|
|
58
|
+
|
|
59
|
+
- name: Upload Artifacts
|
|
60
|
+
uses: actions/upload-artifact@v4
|
|
61
|
+
with:
|
|
62
|
+
name: assets-${{ matrix.target }}
|
|
63
|
+
path: |
|
|
64
|
+
${{ matrix.archive_name }}
|
|
65
|
+
${{ matrix.archive_name }}.sha256
|
|
66
|
+
|
|
67
|
+
publish-release:
|
|
68
|
+
name: Publish GitHub Release
|
|
69
|
+
needs: build-binaries
|
|
70
|
+
runs-on: ubuntu-latest
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v4
|
|
73
|
+
- name: Download All Built Artifacts
|
|
74
|
+
uses: actions/download-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
path: artifacts
|
|
77
|
+
merge-multiple: true
|
|
78
|
+
|
|
79
|
+
- name: Generate Combined Checksums
|
|
80
|
+
run: |
|
|
81
|
+
cd artifacts
|
|
82
|
+
cat *.sha256 > checksums.txt || true
|
|
83
|
+
cd ..
|
|
84
|
+
|
|
85
|
+
- name: Create or Update GitHub Release
|
|
86
|
+
uses: softprops/action-gh-release@v2
|
|
87
|
+
with:
|
|
88
|
+
files: artifacts/*
|
|
89
|
+
generate_release_notes: true
|
pnuke-0.1.1/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/target
|