ImageGrid/.github/workflows/viewer-build.yml
Alex A. Naanou 27ffd2a243 gnumake...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2025-10-18 01:13:59 +03:00

77 lines
1.5 KiB
YAML

name: Viewer build
on:
workflow_dispatch:
push:
branches: [ "master" ]
tags: v**
release:
types: [published]
jobs:
build:
strategy:
matrix:
#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 make gnu-sed zip
echo PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH" >> $GITHUB_ENV
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/*