Skip to content

Commit

Permalink
feat(ci): mutli os build
Browse files Browse the repository at this point in the history
see  #92
  • Loading branch information
duncdrum committed Aug 18, 2021
1 parent 44c8085 commit 2daa167
Showing 1 changed file with 44 additions and 23 deletions.
67 changes: 44 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,62 @@
version: 2.1
# todo:
# - replicate travis + appveyour features in circle
# - add notarisation signing for win/mac on circle
# - consider writing a custom orb
# - rebase all the circle stuff and squash
# - add caching
# - add notarisation signing for win/mac on circle (post-step)
# - squash circle commits
# - add context for secrets
# - contact support about windows orb fail

orbs:
# see https://circleci.com/developer/orbs/orb/circleci/node
# see https://circleci.com/developer/orbs/orb/circleci/windows
node: circleci/node@4.7.0
win: circleci/windows@2.4.1
executors:
linux: &nix
docker:
- image: cimg/python:3.9.6-node
# auth:
# username: mydockerhub-user
# password: $DOCKERHUB_PASSWORD
windows: win/default
macos: # macos executor using xcode 11 should it be 12?
macos:
xcode: 12.5.1

jobs:
compile:
# todo switch to evolvedbinary/fs-build:centos7_x64-be
docker:
- image: 'evolvedbinary/fs-build:centos7_x64-be'
# executor:
# name: node/default
# tag: '14.17.5'
steps:
parameters:
os:
type: executor
node-version:
type: string
executor: << parameters.os >>
steps:
- checkout
# - run: sudo apt-get --yes install libx11-dev libxkbfile-dev
- when:
condition:
equal: [<<parameters.os>>, *nix]
steps:
- run:
command: |
sudo apt-get update
sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-0
- node/install:
install-yarn: true
node-version: << parameters.node-version >>
install-yarn: true
install-npm: false
- node/install-packages:
# TODO: check if this is what we realy realy want
cache-path: ~/project/node_modules
# TODO: check if this is what we want, what we really really want
override-ci-command: yarn install --ignore-engines
pkg-manager: yarn
- run: node --version
- run: yarn --version
- run: yarn build
workflows:
run-npm-command:
compile-all:
jobs:
- compile
# - node/run:
# setup: apt-get --yes install libx11-dev libxkbfile-dev
# pkg-manager: yarn
# override-ci-command: yarn install --ignore-engines
# yarn-run: yarn build
# version: '14.17.5'
- compile:
matrix:
parameters:
os: [linux, windows, macos]
node-version: ["12.22.5", "14.17.5"]

0 comments on commit 2daa167

Please sign in to comment.