Skip to content

Commit

Permalink
Fix emsdk can't build wasm64 for lib which contains posix io stubs: o…
Browse files Browse the repository at this point in the history
…pen, read, close
  • Loading branch information
halx99 committed May 23, 2024
1 parent 3ea9b37 commit 399871b
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,23 +340,31 @@ jobs:
wasm:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Run a job for each of the specified target architectures:
strategy:
matrix:
plat:
- wasm
- wasm64
env:
BUILD_PLAT: ${{ matrix.plat }}
- name: Build
shell: pwsh
run: if ('${{ github.event.inputs.libs }}' -eq ''){ ./build.ps1 -p wasm -a '*' -libs 'zlib,openssl' } else { ./build.ps1 -p wasm -a '*' -libs '${{ github.event.inputs.libs }}' }

- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./${{ env.install_path }}/**
name: ${{ env.install_path }}
wasm64:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Build
shell: pwsh
run: if ('${{ github.event.inputs.libs }}' -eq ''){ ./build.ps1 -p $env:BUILD_PLAT -a '*' -libs 'openssl,zlib' } else { ./build.ps1 -p $env:BUILD_PLAT -a '*' -libs '${{ github.event.inputs.libs }}' }
run: if ('${{ github.event.inputs.libs }}' -eq ''){ ./build.ps1 -p wasm64 -a '*' -libs 'openssl' } else { ./build.ps1 -p wasm64 -a '*' -libs '${{ github.event.inputs.libs }}' }

- name: Upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 399871b

Please sign in to comment.