Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo the javascript version and use pre-built binaries #342

Merged
merged 15 commits into from
Mar 31, 2024
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
76 changes: 38 additions & 38 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
CXX: g++-12

steps:
- uses: actions/checkout@v3
with:
ref: main-dev
- uses: actions/checkout@v4
- run: git submodule update --init --recursive

# C/C++
Expand All @@ -44,7 +42,7 @@ jobs:

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Python
Expand All @@ -58,11 +56,13 @@ jobs:

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci --skip-scripts
- name: Build JavaScript
run: npm ci
run: npm run build-js
- name: Test JavaScript
run: npm test

Expand Down Expand Up @@ -114,9 +114,7 @@ jobs:
CXX: clang++-16

steps:
- uses: actions/checkout@v3
with:
ref: main-dev
- uses: actions/checkout@v4
- run: git submodule update --init --recursive

# C/C++
Expand All @@ -135,6 +133,18 @@ jobs:
- name: Test C
run: ./build_artifacts/test_c

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci --skip-scripts
- name: Build JavaScript
run: npm run build-js
- name: Test JavaScript
run: npm test

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
Expand All @@ -149,16 +159,6 @@ jobs:
- name: Test Python
run: pytest python/scripts/ -s -x

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Build and test JavaScript
run: |
npm ci
npm test

# C#
- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v3
Expand All @@ -177,9 +177,7 @@ jobs:
runs-on: macos-12

steps:
- uses: actions/checkout@v3
with:
ref: main-dev
- uses: actions/checkout@v4
- run: git submodule update --init --recursive

# C/C++
Expand All @@ -194,6 +192,18 @@ jobs:
- name: Test C
run: ./build_artifacts/test_c

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci --skip-scripts
- name: Build JavaScript
run: npm run build-js
- name: Test JavaScript
run: npm test

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
Expand All @@ -207,16 +217,6 @@ jobs:
- name: Test Python
run: pytest python/scripts/ -s -x

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Build JavaScript
run: npm ci
- name: Test JavaScript
run: npm test

# ObjC/Swift
- name: Build ObjC/Swift
run: swift build
Expand All @@ -240,9 +240,7 @@ jobs:
name: Windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
ref: main-dev
- uses: actions/checkout@v4
- run: git submodule update --init --recursive

# C/C++
Expand Down Expand Up @@ -271,11 +269,13 @@ jobs:

# JavaScript
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci --skip-scripts
- name: Build JavaScript
run: npm ci
run: npm run build-js
- name: Test JavaScript
run: npm test

Expand All @@ -296,7 +296,7 @@ jobs:
name: Docker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git submodule update --init --recursive
- name: Build
uses: docker/build-push-action@v4
Expand Down
Loading
Loading