Skip to content

Commit

Permalink
Updated release flow to release config-gen as a bundler type
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmcmaster committed Aug 14, 2023
1 parent aa4d6ae commit afe4674
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
needs: ['create-release']
strategy:
matrix:
wasm-dirctory: [config-wasm, config-gen]
wasm-dirctory: [config-wasm]
runs-on: ubuntu-latest
env:
working-directory: ./lib/${{ matrix.wasm-dirctory }}
Expand Down Expand Up @@ -260,13 +260,16 @@ jobs:
asset_content_type: application/octet-stream


# The hdr-histogram-wasm needs to be build with bundler rather than nodejs
# The hdr-histogram-wasm and config-gen need to be build with bundler rather than nodejs
wasm-release-histogram:
name: Wasm Pack and Upload Histogram
needs: ['create-release']
strategy:
matrix:
wasm-dirctory: [hdr-histogram-wasm, config-gen]
runs-on: ubuntu-latest
env:
working-directory: ./lib/hdr-histogram-wasm
working-directory: ./lib/${{ matrix.wasm-dirctory }}
steps:
- uses: actions/checkout@v3
- name: Download artifacts
Expand Down Expand Up @@ -316,7 +319,7 @@ jobs:

- name: Compress for Linux
run: |
asset_name="pewpew-$VERSION-hdr-histogram-wasm.tar.xz"
asset_name="pewpew-$VERSION-${{ matrix.wasm-dirctory }}.tar.xz"
echo "ASSET_NAME=$asset_name" >> $GITHUB_ENV
XZ_OPT=-9 tar -C ./ -cJf $asset_name package.json hdr*
working-directory: ${{env.working-directory}}/pkg/
Expand Down

0 comments on commit afe4674

Please sign in to comment.