name: Viewer build on: workflow_dispatch: #push: # branches: [ "master" ] # tags: v** release: types: [published] jobs: build: strategy: matrix: # XXX the mac build is broken for now -- running blind as I do # not have a mac to test on, but I will at least fix the # build... #os: [ ubuntu-latest, windows-latest, macos-latest ] os: [ ubuntu-latest, windows-latest ] #os: [ macos-latest ] runs-on: ${{ matrix.os }} defaults: run: shell: bash working-directory: ./Viewer steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v6 - name: Windows-specific if: ${{ matrix.os == 'windows-latest' }} run: | choco install wget zip - name: Ubuntu-specific if: ${{ matrix.os == 'ubuntu-latest' }} run: | # fixes an issue when running npx sandboxing... sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 - name: MacOS-specific if: ${{ matrix.os == 'macos-latest' }} run: | brew install gnu-sed zip echo PATH="$HOMEBREW_PREFIX/opt/zip/bin:$PATH" >> $GITHUB_ENV #- name: Env # run: | # echo "VERSION=$(make version)" >> $GITHUB_ENV - name: Pre-Build run: make clean-all dev - name: Build run: make dist - name: Release env: GH_TOKEN: ${{ github.token }} run: | # XXX need to create if this does not exist... #gh release create release-latest -t "TEST" gh release upload release-latest ./dist/*