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
2 changes: 1 addition & 1 deletion .github/scripts/detect-changes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { execSync } from 'child_process';
import { appendFileSync } from 'fs';

const ALL_PACKAGES = ['wasm-bip32', 'wasm-mps', 'wasm-utxo', 'wasm-solana', 'wasm-dot', 'wasm-ton'];
const ALL_PACKAGES = ['wasm-bip32', 'wasm-mps', 'wasm-utxo', 'wasm-solana', 'wasm-dot', 'wasm-ton', 'wasm-privacy-coin'];

function setOutput(packages) {
const value = JSON.stringify(packages);
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
packages/wasm-solana
packages/wasm-dot
packages/wasm-ton
packages/wasm-privacy-coin
cache-on-failure: true

- name: Setup Node
Expand Down Expand Up @@ -101,6 +102,23 @@ jobs:
- name: Build packages
run: npm --workspaces run build

- name: Setup JDK 17 (for wasm-privacy-coin JAR)
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: "17"

- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('packages/wasm-privacy-coin/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: Build wasm-privacy-coin JAR
working-directory: packages/wasm-privacy-coin
run: make jar

- name: Check Source Code Formatting
run: npm run check-fmt

Expand All @@ -121,6 +139,7 @@ jobs:
packages/wasm-dot/js/wasm/
packages/wasm-ton/dist/
packages/wasm-ton/js/wasm/
packages/wasm-privacy-coin/dist/
retention-days: 1

- name: Upload webui artifact
Expand Down Expand Up @@ -156,6 +175,9 @@ jobs:
- package: wasm-ton
needs-wasm-pack: false
has-wasm-pack-tests: false
- package: wasm-privacy-coin
needs-wasm-pack: false
has-wasm-pack-tests: false
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -203,6 +225,26 @@ jobs:
run: cargo test --workspace
working-directory: packages/${{ matrix.package }}

- name: Cache Maven dependencies
if: matrix.package == 'wasm-privacy-coin'
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('packages/wasm-privacy-coin/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: Setup JDK 17 (wasm-privacy-coin Java tests)
if: matrix.package == 'wasm-privacy-coin'
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: "17"

- name: Java Test
if: matrix.package == 'wasm-privacy-coin'
working-directory: packages/wasm-privacy-coin
run: make test-java

- name: Wasm-Pack Test (Node)
if: matrix.has-wasm-pack-tests
run: npm run test:wasm-pack-node
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions packages/wasm-privacy-coin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/main/resources/wasm/
target/
dist/
.flattened-pom.xml
7 changes: 7 additions & 0 deletions packages/wasm-privacy-coin/.releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/github", { "failComment": false }]
]
}
Loading
Loading