Skip to content

Lock file-loader to version @2 to fix the problem that some images se… #90

Lock file-loader to version @2 to fix the problem that some images se…

Lock file-loader to version @2 to fix the problem that some images se… #90

Workflow file for this run

name: Build Test App
on:
push:
branches: [ main, develop ]
paths-ignore:
- 'README.md'
- 'CHANGE.md'
- 'doc/*'
- '.github/*'
jobs:
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Npm Install
run: |
git config --global url."https://github.com".insteadOf ssh://[email protected]
npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=4096
run: npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-win32
path: dist/OpenBlock-Desktop*.exe
retention-days: 1
build-mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install python2.7
run: |
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18
- name: Npm Install
run: |
pip install setuptools
npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=8192
CSC_IDENTITY_AUTO_DISCOVERY: false
run: |
export PYTHON_PATH=$(pyenv root)/shims/python
npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-darwin
path: dist/OpenBlock-Desktop*.dmg
retention-days: 1
build-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Npm Install
run: npm ci
- name: Build Dist
env:
GA_ID: ${{ secrets.GA_ID }}
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=8192
CSC_IDENTITY_AUTO_DISCOVERY: false
run: npm run dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: OpenBlock-Desktop-linux
path: dist/OpenBlock-Desktop*.deb
retention-days: 1