Skip to content

build(deps-dev): bump electron from 18.3.7 to 35.7.5 in /src #85

build(deps-dev): bump electron from 18.3.7 to 35.7.5 in /src

build(deps-dev): bump electron from 18.3.7 to 35.7.5 in /src #85

Workflow file for this run

name: Continuous
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: ['appimage', 'snap', 'deb', 'rpm']
arch: ['x64', 'ia32', 'armv7l', 'arm64']
exclude:
- build_type: snap
arch: 'arm64'
- build_type: snap
arch: 'armv7l'
- build_type: snap
arch: 'ia32'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Snapcraft
if: matrix.build_type == 'snap'
run: sudo snap install snapcraft --classic
- name: Setup build environment
run: |
./src/scripts/ci-setup-linux.sh
- name: Build
run: |
cd src
yarn run build:${{ matrix.build_type }} --${{ matrix.arch }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: ./src/scripts/ci-cleanup-linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Musicblocks-${{ matrix.arch }}-${{ matrix.build_type }}
path: 'src/dist/'
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup build environment
run: |
./src/scripts/ci-setup-macos.sh
- run: |
cd src
yarn run build:macos
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: ./src/scripts/ci-cleanup-linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Musicblocks-macos-x86_64
path: 'src/dist/'
build-windows:
strategy:
matrix:
arch: ['x64', 'ia32']
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup build environment
run: |
.\src\scripts\ci-setup-windows.bat
- run: |
cd src
yarn run build:windows --${{ matrix.arch }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: sh .\src\scripts\ci-cleanup-linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Musicblocks-windows-x86_64
path: 'src/dist/'
Release:
needs: [build, build-macos, build-windows]
runs-on: ubuntu-latest
steps:
- name: Make a directory to store all artifacts
run: mkdir artifacts
- uses: actions/download-artifact@v2
with:
path: artifacts
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage artifacts/**/*.*