mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(build): fixup CircleCI 2.0 config
This commit is contained in:
parent
b355ef4737
commit
9caeb94361
|
@ -4,43 +4,49 @@ jobs:
|
||||||
build:
|
build:
|
||||||
machine: true
|
machine: true
|
||||||
steps:
|
steps:
|
||||||
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name : Export env
|
name : Export environment variables
|
||||||
command: |
|
command: |
|
||||||
echo 'export MAKEFLAGS="j4"' >> $BASH_ENV
|
echo 'export MAKEFLAGS="j4"' >> $BASH_ENV
|
||||||
echo 'export BUILD__="x86_64"' >> $BASH_ENV
|
echo 'export BUILD__="x86_64"' >> $BASH_ENV
|
||||||
echo 'export BTYPE__="release"' >> $BASH_ENV
|
echo 'export BTYPE__="release"' >> $BASH_ENV
|
||||||
|
docker info
|
||||||
- run:
|
- run:
|
||||||
name: Install zip
|
name: Install zip
|
||||||
command: |
|
command: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install zip
|
sudo apt-get install zip tree
|
||||||
|
- restore_cache:
|
||||||
|
key: dependency-cache
|
||||||
|
paths:
|
||||||
|
- ~/cache
|
||||||
- run:
|
- run:
|
||||||
name: Build stage 1
|
name: Build stage 1
|
||||||
command: |
|
command: |
|
||||||
docker info
|
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "~/cache/${BUILD__}" stage1
|
||||||
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage1
|
|
||||||
- run:
|
- run:
|
||||||
name: Build stage 2
|
name: Build stage 2
|
||||||
command: |
|
command: |
|
||||||
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage2
|
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "~/cache/${BUILD__}" stage2
|
||||||
ls -al ~/cache
|
ls -al ~/cache
|
||||||
|
- save_cache:
|
||||||
|
key: dependency-cache
|
||||||
|
paths:
|
||||||
|
- ~/cache
|
||||||
- run:
|
- run:
|
||||||
name: Build stage 3
|
name: Build stage 3
|
||||||
command: |
|
command: |
|
||||||
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" ~/cache/"$BUILD__" stage3
|
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "~/cache/${BUILD__}" stage3
|
||||||
ls -al ~/
|
|
||||||
ls -al ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/
|
|
||||||
ls -al ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe
|
|
||||||
- run:
|
- run:
|
||||||
name: Zip artifacts
|
name: Debug info
|
||||||
command: |
|
command: |
|
||||||
cd ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/
|
ls -al ~/
|
||||||
zip -r qtox_"$BUILD__"_"$BTYPE__".zip *
|
tree ~/project/workspace -L 4
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox.exe
|
path: "/home/circleci/project/workspace/x86_64/qtox/release/qtox-x86_64-release.zip"
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ~/qTox/workspace/"$BUILD__"/qtox/"$BTYPE__"/qtox_"$BUILD__"_"$BTYPE__".zip
|
path: "/home/circleci/project/workspace/x86_64/qtox/release/setup-qtox-x86_64-release.exe"
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user