2 Commit-ok 5f4d945f36 ... 227ac4a248

Szerző SHA1 Üzenet Dátum
  secext2022 227ac4a248 修复(src): deno check 3 hónapja
  secext2022 d9f768a42e 添加(工具): tar-sha256 3 hónapja
10 módosított fájl, 66 hozzáadás és 48 törlés
  1. 22 0
      .github/workflows/ci.yml
  2. 2 0
      .gitignore
  3. 21 1
      deno.json
  4. 0 47
      deno.lock
  5. 0 0
      doc/ec.md
  6. 0 0
      doc/iso.md
  7. 0 0
      doc/raid.md
  8. 21 0
      pmbb-ec/LICENSE
  9. 0 0
      pmbb-ec/README.md
  10. 0 0
      src/bb/box.ts

+ 22 - 0
.github/workflows/ci.yml

@@ -5,6 +5,9 @@ on:
     branches:
       - main
 
+env:
+  CARGO_TERM_COLOR: always
+
 jobs:
   build:
     runs-on: ubuntu-latest
@@ -17,6 +20,7 @@ jobs:
 
     - run: deno fmt --check
 
+    # deno
     - run: deno task check
 
     # TODO
@@ -24,3 +28,21 @@ jobs:
     #   with:
     #     name: pmbb
     #     path: pmbb.tar.zst
+
+    # tar-sha256
+    - run: cd tar-sha256 && cargo fmt --check
+
+    - run: cd tar-sha256 && cargo build --verbose
+    - run: cd tar-sha256 && cargo test --verbose
+    - run: cd tar-sha256 && cargo doc
+
+    # host: x86_64-unknown-linux-gnu
+    - run: cd tar-sha256 && cargo build --release
+
+    - run: |
+        tar --zstd -cvf tar-sha256_release_x86_64-unknown-linux-gnu.tar.zst \
+        tar-sha256/target/release/tar-sha256
+    - uses: actions/upload-artifact@v4
+      with:
+        name: tar-sha256_release_x86_64-unknown-linux-gnu
+        path: tar-sha256_release_x86_64-unknown-linux-gnu.tar.zst

+ 2 - 0
.gitignore

@@ -1 +1,3 @@
 /tmp
+
+deno.lock

+ 21 - 1
deno.json

@@ -1,10 +1,30 @@
 {
+  "name": "@fm-elpac/pmbb",
+  "version": "0.1.0-a1",
+  "exports": {
+    ".": "./src/bb/mod.ts",
+    "./pmbb-scan": "./src/bin/pmbb-scan.ts",
+    "./pmbb-same": "./src/bin/pmbb-same.ts",
+    "./pmbb-box": "./src/bin/pmbb-box.ts",
+    "./pmbb-gen": "./src/bin/pmbb-gen.ts",
+    "./pmbb-delta": "./src/bin/pmbb-delta.ts"
+  },
+  "publish": {
+    "include": [
+      "README.md",
+      "LICENSE",
+      "src"
+    ]
+  },
+
   "exclude": [
-    "tmp/*"
+    "tmp/*",
+    "tar-sha256/target/*"
   ],
   "tasks": {
     "check": "deno lint && deno check -q src/**/*.ts"
   },
+
   "imports": {
     "@std/async": "jsr:@std/async@^0.224.2",
     "@std/datetime": "jsr:@std/datetime@^0.224.3",

+ 0 - 47
deno.lock

@@ -1,47 +0,0 @@
-{
-  "version": "3",
-  "packages": {
-    "specifiers": {
-      "jsr:@std/bytes@^1.0.0-rc.3": "jsr:@std/bytes@1.0.2",
-      "jsr:@std/bytes@^1.0.1-rc.3": "jsr:@std/bytes@1.0.2",
-      "jsr:@std/datetime@^0.224.3": "jsr:@std/datetime@0.224.3",
-      "jsr:@std/io@^0.224.1": "jsr:@std/io@0.224.3",
-      "jsr:@std/path@^1.0.0": "jsr:@std/path@1.0.0",
-      "jsr:@std/streams@^0.224.5": "jsr:@std/streams@0.224.5"
-    },
-    "jsr": {
-      "@std/bytes@1.0.2": {
-        "integrity": "fbdee322bbd8c599a6af186a1603b3355e59a5fb1baa139f8f4c3c9a1b3e3d57"
-      },
-      "@std/datetime@0.224.3": {
-        "integrity": "43197d0b2e00444fb169275b79a3e8fa506fd65c92398a207d71fd3e69b26c5b"
-      },
-      "@std/io@0.224.3": {
-        "integrity": "b402edeb99c6b3778d9ae3e9927bc9085b170b41e5a09bbb7064ab2ee394ae2f",
-        "dependencies": [
-          "jsr:@std/bytes@^1.0.1-rc.3"
-        ]
-      },
-      "@std/path@1.0.0": {
-        "integrity": "77fcb858b6e38777d1154df0f02245ba0b07e2c40ca3c0eec57c9233188c2d21"
-      },
-      "@std/streams@0.224.5": {
-        "integrity": "bcde7818dd5460d474cdbd674b15f6638b9cd73cd64e52bd852fba2bd4d8ec91",
-        "dependencies": [
-          "jsr:@std/bytes@^1.0.0-rc.3",
-          "jsr:@std/io@^0.224.1"
-        ]
-      }
-    }
-  },
-  "remote": {},
-  "workspace": {
-    "dependencies": [
-      "jsr:@std/async@^0.224.2",
-      "jsr:@std/datetime@^0.224.3",
-      "jsr:@std/io@^0.224.3",
-      "jsr:@std/path@^1.0.0",
-      "jsr:@std/streams@^0.224.5"
-    ]
-  }
-}

+ 0 - 0
doc/ec.md


+ 0 - 0
doc/iso.md


+ 0 - 0
doc/raid.md


+ 21 - 0
pmbb-ec/LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024  secext2022
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 0 - 0
pmbb-ec/README.md


+ 0 - 0
src/bb/box.ts


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott