ImageGrid/.github/workflows/viewer-build.yml
Alex A. Naanou aeca88b1c5 tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2025-10-16 16:07:30 +03:00

69 lines
1.4 KiB
YAML

name: Viewer build
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
strategy:
matrix:
#os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./Viewer
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
- name: Windows build dependencies
if: ${{ matrix.os == 'windows-latest' }}
run: |
choco install wget zip
- name: Ubuntu tweaks
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
# fixes an issue when running npx sandboxing...
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
#- name: Check build dependencies
# run: make check
- name: Pre-Build
run: make clean-all dev
- name: Build
run: make dist
- name: Check build
if: always()
run: |
ls -la ./build
zipnote -v
#[ -e ./build/ImageGrid.Viewer-*.zip.tmp ] \
# && zipnote ./build/ImageGrid.Viewer-*.zip.tmp | grep -e '^@ [^(]'
- 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/*