Skip to content
Closed
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
48 changes: 48 additions & 0 deletions .github/workflows/ci_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "CI: JS"

on:
push:
branches:
- main
pull_request:
paths:
- "ainu-utils/**"
- "ainu-utils-js/**"
workflow_dispatch:

defaults:
run:
working-directory: ainu-utils-js

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Setup Node.js
uses: actions/setup-node@v6

- name: Install wasm-pack
run: curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | bash

- name: Build
run: |
wasm-pack build --target nodejs
node ./patch.js
ls pkg

- name: "Debug: Upload"
uses: actions/upload-artifact@v6
with:
name: pkg
path: ainu-utils-js/pkg/

- name: Test
run: npm exec vitest
9 changes: 5 additions & 4 deletions .github/workflows/ci_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
branches:
- main
pull_request:
paths-ignore:
- "ainu-utils-js/**"
paths:
- "ainu-utils/**"
- "ainu-utils-python/**"
workflow_dispatch:

jobs:
linux:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 2

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci_rust.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: "CI: Rust"

on:
Expand All @@ -22,15 +21,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 2

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/release_js.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: "Release: JS"

on:
Expand All @@ -17,19 +16,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 2

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

# https://github.com/npm/cli/issues/6184#issuecomment-1544496444
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
registry-url: "https://registry.npmjs.org"

Expand All @@ -39,7 +35,7 @@ jobs:
- name: Build
run: |
wasm-pack build --target nodejs
node ./patch.mjs
node ./patch.js
cd ./pkg
npm pkg set name="ainu-utils"
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/release_rust.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: "Release: Rust"

env:
Expand All @@ -19,13 +18,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish package rust
if: ${{ !contains(github.ref, 'rc') }}
Expand Down
1 change: 1 addition & 0 deletions ainu-utils-js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion ainu-utils-js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ainu-utils-js"
version = "0.5.1"
edition = "2021"
edition = "2024"
description = "A collection of utilities for the Ainu language"
license = "MIT"

Expand Down
Loading
Loading