mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore(appveyor): build x86 on real x86 machines (#1912)
We do this by using Appveyor's `platform` configuration variable instead of always running on x64 and cross-compiling to x86. Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
85c8cd6340
commit
5432363aa1
17
appveyor.yml
17
appveyor.yml
@ -19,31 +19,32 @@ environment:
|
||||
global:
|
||||
ELECTRON_NO_ATTACH_CONSOLE: true
|
||||
nodejs_version: "6.10.3"
|
||||
matrix:
|
||||
- TARGET_ARCH: x64
|
||||
- TARGET_ARCH: x86
|
||||
|
||||
platform:
|
||||
- x86
|
||||
- x64
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
install:
|
||||
- ps: Update-NodeJsInstallation $env:nodejs_version $env:TARGET_ARCH
|
||||
- ps: Update-NodeJsInstallation $env:nodejs_version $env:Platform
|
||||
- set PATH=C:\Program Files (x86)\Windows Kits\8.1\bin\x86;%PATH%
|
||||
- set PATH=C:\Program Files (x86)\NSIS;%PATH%
|
||||
- set PATH=C:\MinGW\bin;%PATH%
|
||||
- set PATH=C:\MinGW\msys\1.0\bin;%PATH%
|
||||
- bash .\scripts\ci\install.sh -o win32 -r %TARGET_ARCH%
|
||||
- bash .\scripts\ci\install.sh -o win32 -r %Platform%
|
||||
|
||||
build: off
|
||||
|
||||
test_script:
|
||||
- node --version
|
||||
- npm --version
|
||||
- bash .\scripts\ci\test.sh -o win32 -r %TARGET_ARCH%
|
||||
- bash .\scripts\ci\build-installers.sh -o win32 -r %TARGET_ARCH%
|
||||
- bash .\scripts\ci\test.sh -o win32 -r %Platform%
|
||||
- bash .\scripts\ci\build-installers.sh -o win32 -r %Platform%
|
||||
|
||||
deploy_script:
|
||||
- if %APPVEYOR_REPO_BRANCH%==master (bash .\scripts\ci\deploy.sh -o win32 -r %TARGET_ARCH%)
|
||||
- if %APPVEYOR_REPO_BRANCH%==master (bash .\scripts\ci\deploy.sh -o win32 -r %Platform%)
|
||||
|
||||
notifications:
|
||||
|
||||
|
@ -46,10 +46,11 @@ fi
|
||||
|
||||
if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then
|
||||
./scripts/build/docker/run-command.sh \
|
||||
-r "$TARGET_ARCH" \
|
||||
-r "$ARGV_ARCHITECTURE" \
|
||||
-s "$(pwd)" \
|
||||
-c 'make installers-all'
|
||||
else
|
||||
./scripts/build/check-dependency.sh make
|
||||
export TARGET_ARCH="$ARGV_ARCHITECTURE"
|
||||
make installers-all
|
||||
fi
|
||||
|
@ -51,5 +51,6 @@ if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then
|
||||
-c "make publish-all"
|
||||
else
|
||||
./scripts/build/check-dependency.sh make
|
||||
export TARGET_ARCH="$ARGV_ARCHITECTURE"
|
||||
make publish-all
|
||||
fi
|
||||
|
@ -72,6 +72,7 @@ else
|
||||
npm config set progress=false
|
||||
"$PIP_COMMAND" install --quiet -r requirements.txt
|
||||
|
||||
export TARGET_ARCH="$ARGV_ARCHITECTURE"
|
||||
make info
|
||||
make electron-develop
|
||||
fi
|
||||
|
@ -51,5 +51,6 @@ if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then
|
||||
-c 'xvfb-run --server-args=$XVFB_ARGS make lint test sanity-checks'
|
||||
else
|
||||
./scripts/build/check-dependency.sh make
|
||||
export TARGET_ARCH="$ARGV_ARCHITECTURE"
|
||||
make lint test sanity-checks
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user