Skip to content

Commit

Permalink
Merge pull request #239 from brianorwhatever/patch-1
Browse files Browse the repository at this point in the history
Build Javascript on multiple platforms
  • Loading branch information
andrewwhitehead authored Apr 16, 2024
2 parents a772ef9 + 6a14f7c commit c025628
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,21 @@ jobs:
build-javascript:
name: Build and test JavaScript wrapper
needs: [build-release]
runs-on: ubuntu-latest

strategy:
matrix:
architecture:
[linux-aarch64, linux-x86_64, darwin-universal]
include:
- os: ubuntu-latest
architecture: linux-aarch64
- os: ubuntu-latest
architecture: linux-x86_64
- os: macos-latest
architecture: darwin-universal

runs-on: ${{ matrix.os }}

defaults:
run:
working-directory: wrappers/javascript
Expand All @@ -329,7 +343,12 @@ jobs:
- name: Fetch library artifacts
uses: actions/download-artifact@v4
with:
name: library-linux-x86_64
name: library-${{ matrix.architecture }}

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine auditwheel
- name: Install dependencies
run: yarn install
Expand All @@ -347,6 +366,7 @@ jobs:
run: yarn check-types

- name: Run tests
if: ${{ matrix.architecture != 'linux-aarch64' }}
env:
# binary is downloaded to root of repository
LIB_ARIES_ASKAR_PATH: ../../../
Expand Down

0 comments on commit c025628

Please sign in to comment.