Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
ci(windows): splits windows build to a windows machine
Browse files Browse the repository at this point in the history
Native binaries must be compiled on the correct OS and architecture

re #154
  • Loading branch information
2xAA committed Jun 18, 2020
1 parent 2ff42f3 commit 8294e1b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ language: node_js
node_js: '10'
jobs:
include:
- name: "Build on macOS for macOS and Windows"
- name: "Build on Windows"
os: windows
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
- name: "Build on macOS"
os: osx
osx_image: xcode10.2
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
- name: "Build on Linux for Linux"
- name: "Build on Linux"
os: linux
dist: xenial
env:
Expand All @@ -26,7 +32,8 @@ cache:
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://github.com/Palakis/obs-ndi/releases/download/4.9.0/libndi4_4.5.1-1_amd64.deb && sudo dpkg -i libndi4_4.5.1-1_amd64.deb; fi
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then yarn run electron:build -mw --publish=never; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then yarn run electron:build -w --publish=never; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then yarn run electron:build -m --publish=never; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then yarn run electron:build -l --publish=never; fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
Expand Down

0 comments on commit 8294e1b

Please sign in to comment.