fix windows build

pull/1576/head
Audric Ackermann 4 years ago
parent 1a086dbbce
commit 930c4d5b81
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -5,10 +5,11 @@ on:
push: push:
branches: branches:
- master - master
- development
- clearnet - clearnet
- github-actions
- react-refactor pull_request:
branches:
- clearnet
jobs: jobs:
build: build:
@ -30,15 +31,24 @@ jobs:
- name: Install node - name: Install node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 10.13.0 node-version: 10.19.0
- name: Chocolatey Install Action
if: runner.os == 'Windows'
uses: crazy-max/ghaction-chocolatey@v1.4.2
with:
args: install python2 visualcpp-build-tools -y
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
if: runner.os == 'Windows'
- name: Setup node for windows - name: Setup node for windows
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
npm install --global --production windows-build-tools@4.0.0
npm install --global node-gyp@latest npm install --global node-gyp@latest
npm config set python python2.7 npm config set python python2.7
npm config set msvs_version 2015 npm config set msvs_version 2017
- name: Install yarn - name: Install yarn
run: npm install yarn --no-save run: npm install yarn --no-save

@ -4,10 +4,7 @@ name: Session Test
on: on:
pull_request: pull_request:
branches: branches:
- development
- clearnet - clearnet
- github-actions
- react-refactor
jobs: jobs:
build: build:
@ -28,38 +25,41 @@ jobs:
- name: Pull git submodules - name: Pull git submodules
run: git submodule update --init run: git submodule update --init
# file server dependencies are not needed for now
# - name: Install file server dependency
# run: |
# cd session-file-server
# yarn install;
# cd -
- name: Install node - name: Install node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 10.13.0 node-version: 10.19.0
- name: Chocolatey Install Action
if: runner.os == 'Windows'
uses: crazy-max/ghaction-chocolatey@v1.4.2
with:
args: install python2 visualcpp-build-tools -y
#Not having this will break the windows build because the PATH won't be set by msbuild.
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
if: runner.os == 'Windows'
- name: Setup node for windows - name: Setup node for windows
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
npm install --global --production windows-build-tools@4.0.0
npm install --global node-gyp@latest npm install --global node-gyp@latest
npm config set python python2.7 npm config set python python2.7
npm config set msvs_version 2015 npm config set msvs_version 2017
- uses: actions/cache@v2 - uses: actions/cache@v2
id: yarn-cache id: yarn-cache
if: runner.os != 'Windows'
with: with:
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies #skipped if step before set variable to true - name: Install Dependencies #skipped if step before set variable to true
if: | if: |
steps.yarn-cache.outputs.cache-hit != 'true' steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --network-timeout 600000 run: yarn install --frozen-lockfile --network-timeout 600000
- name: Generate and concat files - name: Generate and concat files
run: yarn generate run: yarn generate

@ -26,15 +26,24 @@ jobs:
- name: Install node - name: Install node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 10.13.0 node-version: 10.19.0
- name: Chocolatey Install Action
if: runner.os == 'Windows'
uses: crazy-max/ghaction-chocolatey@v1.4.2
with:
args: install python2 visualcpp-build-tools -y
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
if: runner.os == 'Windows'
- name: Setup node for windows - name: Setup node for windows
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
npm install --global --production windows-build-tools@4.0.0
npm install --global node-gyp@latest npm install --global node-gyp@latest
npm config set python python2.7 npm config set python python2.7
npm config set msvs_version 2015 npm config set msvs_version 2017
- name: Install yarn - name: Install yarn
run: npm install yarn --no-save run: npm install yarn --no-save

@ -1 +1 @@
10.13.0 10.19.0

@ -307,6 +307,7 @@ class SessionRightPanel extends React.Component<Props, State> {
<MediaGallery documents={documents} media={media} onItemClick={onItemClick} /> <MediaGallery documents={documents} media={media} onItemClick={onItemClick} />
{isGroup && ( {isGroup && (
// tslint:disable-next-line: use-simple-attributes
<SessionButton <SessionButton
text={leaveGroupString} text={leaveGroupString}
buttonColor={SessionButtonColor.Danger} buttonColor={SessionButtonColor.Danger}

@ -229,9 +229,9 @@
resolved "https://registry.yarnpkg.com/@iconify/react/-/react-1.1.3.tgz#ebe4d3e5f5dea23cd6a9634acd7a0a25c7414a59" resolved "https://registry.yarnpkg.com/@iconify/react/-/react-1.1.3.tgz#ebe4d3e5f5dea23cd6a9634acd7a0a25c7414a59"
integrity sha512-ReZNJyr89AfED6XZIXkhsJiNv2taT3j1cTo1HVPHMsrKOz6gAYdXtD2kDWF6+GVoFUxpmnO0fMcA6yCyTf6Tow== integrity sha512-ReZNJyr89AfED6XZIXkhsJiNv2taT3j1cTo1HVPHMsrKOz6gAYdXtD2kDWF6+GVoFUxpmnO0fMcA6yCyTf6Tow==
"@journeyapps/sqlcipher@https://github.com/scottnonnenberg-signal/node-sqlcipher.git#b10f232fac62ba7f8775c9e086bb5558fe7d948b": "@journeyapps/sqlcipher@https://github.com/Bilb/node-sqlcipher.git#790f8857feb80584f78c52b32eadaf6be2d899a8":
version "4.0.0" version "4.0.0"
resolved "https://github.com/scottnonnenberg-signal/node-sqlcipher.git#b10f232fac62ba7f8775c9e086bb5558fe7d948b" resolved "https://github.com/Bilb/node-sqlcipher.git#790f8857feb80584f78c52b32eadaf6be2d899a8"
dependencies: dependencies:
nan "^2.12.1" nan "^2.12.1"
node-pre-gyp "^0.11.0" node-pre-gyp "^0.11.0"

Loading…
Cancel
Save