Browse Source

Comment out wasm builds for now

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.09
falkTX 2 years ago
parent
commit
ac71bffae7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 64 additions and 67 deletions
  1. +64
    -67
      .github/workflows/build.yml

+ 64
- 67
.github/workflows/build.yml View File

@@ -686,73 +686,70 @@ jobs:
path: |
*.tar.gz

wasm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up cache
id: cache
uses: actions/cache@v2
with:
path: |
~/PawPawBuilds
src/Rack/dep/bin
src/Rack/dep/include
src/Rack/dep/lib
src/Rack/dep/share
src/Rack/dep/jansson-2.12
src/Rack/dep/libarchive-3.4.3
src/Rack/dep/libsamplerate-0.1.9
src/Rack/dep/speexdsp-SpeexDSP-1.2rc3
src/Rack/dep/zstd-1.4.5
key: wasm-v${{ env.CACHE_VERSION }}
- name: Set up dependencies
run: |
[ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk
cd ~/PawPawBuilds/emsdk && ./emsdk install latest && ./emsdk activate latest
- name: Build extra dependencies
run: |
source ~/PawPawBuilds/emsdk/emsdk_env.sh
./deps/PawPaw/bootstrap-cardinal.sh wasm && ./deps/PawPaw/.cleanup.sh wasm
- name: Build wasm cross-compiled
run: |
source ~/PawPawBuilds/emsdk/emsdk_env.sh
pushd deps/PawPaw; source local.env wasm; popd
make features
# multiple jobs for building carla, deps and plugins
make CIBUILD=true NOOPT=true USE_GLES2=true carla deps dgl plugins resources -j $(nproc)
# single job for final build stage, otherwise we might killed due to OOM
make CIBUILD=true NOOPT=true USE_GLES2=true -j 1
- name: Set sha8 (non-release)
if: startsWith(github.ref, 'refs/tags/') != true
id: slug1
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
- name: Set sha8 (release)
if: startsWith(github.ref, 'refs/tags/')
id: slug2
run: echo "::set-output name=sha8::$(echo ${{ github.ref_name }})"
- name: Set sha8
id: slug
run: echo "::set-output name=sha8::$(echo ${{ steps.slug1.outputs.sha8 || steps.slug2.outputs.sha8 }})"
- name: Pack binaries
run: |
cd bin; zip -r -9 ../${{ github.event.repository.name }}-wasm-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.zip $(ls *.html *.data *.js *.wasm)
- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-wasm-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
*.zip
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
*.zip
#wasm:
#runs-on: ubuntu-20.04
#steps:
#- uses: actions/checkout@v2
#with:
#submodules: recursive
#- name: Set up cache
#id: cache
#uses: actions/cache@v2
#with:
#path: |
#~/PawPawBuilds
#src/Rack/dep/bin
#src/Rack/dep/include
#src/Rack/dep/lib
#src/Rack/dep/share
#src/Rack/dep/jansson-2.12
#src/Rack/dep/libarchive-3.4.3
#src/Rack/dep/libsamplerate-0.1.9
#src/Rack/dep/speexdsp-SpeexDSP-1.2rc3
#src/Rack/dep/zstd-1.4.5
#key: wasm-v${{ env.CACHE_VERSION }}
#- name: Set up dependencies
#run: |
#[ -e ~/PawPawBuilds/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/PawPawBuilds/emsdk
#cd ~/PawPawBuilds/emsdk && ./emsdk install latest && ./emsdk activate latest
#- name: Build extra dependencies
#run: |
#source ~/PawPawBuilds/emsdk/emsdk_env.sh
#./deps/PawPaw/bootstrap-cardinal.sh wasm && ./deps/PawPaw/.cleanup.sh wasm
#- name: Build wasm cross-compiled
#run: |
#source ~/PawPawBuilds/emsdk/emsdk_env.sh
#pushd deps/PawPaw; source local.env wasm; popd
#make features
#make CIBUILD=true NOOPT=true USE_GLES2=true -j $(nproc)
#- name: Set sha8 (non-release)
#if: startsWith(github.ref, 'refs/tags/') != true
#id: slug1
#run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
#- name: Set sha8 (release)
#if: startsWith(github.ref, 'refs/tags/')
#id: slug2
#run: echo "::set-output name=sha8::$(echo ${{ github.ref_name }})"
#- name: Set sha8
#id: slug
#run: echo "::set-output name=sha8::$(echo ${{ steps.slug1.outputs.sha8 || steps.slug2.outputs.sha8 }})"
#- name: Pack binaries
#run: |
#cd bin; zip -r -9 ../${{ github.event.repository.name }}-wasm-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.zip $(ls *.html *.data *.js *.wasm)
#- uses: actions/upload-artifact@v2
#with:
#name: ${{ github.event.repository.name }}-wasm-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
#path: |
#*.zip
#- uses: softprops/action-gh-release@v1
#if: startsWith(github.ref, 'refs/tags/')
#with:
#tag_name: ${{ github.ref_name }}
#name: ${{ github.ref_name }}
#draft: false
#prerelease: false
#files: |
#*.zip

wasm-mini:
runs-on: ubuntu-20.04


Loading…
Cancel
Save