mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update circleCI config
This commit is contained in:
parent
77a45e18e5
commit
1bf7e27de0
1 changed files with 65 additions and 8 deletions
|
@ -64,7 +64,7 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -121,7 +121,7 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -178,7 +178,64 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: cache-{{ checksum "/tmp/cache-version" }}
|
||||||
|
paths:
|
||||||
|
- openmptcprouter
|
||||||
|
|
||||||
|
build_rpi4:
|
||||||
|
machine: true
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- OMR_VERSION: $CIRCLE_TAG
|
||||||
|
- OMR_TARGET: rpi4
|
||||||
|
|
||||||
|
working_directory: ~/
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: cache
|
||||||
|
command: |
|
||||||
|
echo "cache 49 $OMR_TARGET" > /tmp/cache-target
|
||||||
|
echo "cache 53 $OMR_TARGET $OMR_VERSION" > /tmp/cache-version
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- cache-{{ checksum "/tmp/cache-version" }}
|
||||||
|
- cache-{{ checksum "/tmp/cache-target" }}
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Build toolchain
|
||||||
|
no_output_timeout: 30m
|
||||||
|
command: |
|
||||||
|
git clone https://github.com/ysurac/openmptcprouter || true
|
||||||
|
cd openmptcprouter
|
||||||
|
git pull || true
|
||||||
|
export OMR_PATH="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
||||||
|
export OMR_FEED_URL="$CIRCLE_REPOSITORY_URL"
|
||||||
|
export OMR_FEED_SRC="${CIRCLE_BRANCH:-$CIRCLE_TAG}"
|
||||||
|
sh build.sh prepare {tools,toolchain}/install -j2
|
||||||
|
echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build
|
||||||
|
echo -e "$OMR_PUBKEY" > ~/openmptcprouter/$OMR_TARGET/source/key-build.pub
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: cache-{{ checksum "/tmp/cache-target" }}
|
||||||
|
paths:
|
||||||
|
- openmptcprouter
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
no_output_timeout: 30m
|
||||||
|
command: make IGNORE_ERRORS=m -C ~/openmptcprouter/$OMR_TARGET/source package/{compile,install,index} target/compile -j2 package/compile -j2 target/install -j2
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Deploy
|
||||||
|
command: |
|
||||||
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -235,7 +292,7 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -292,7 +349,7 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -349,7 +406,7 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/$OMR_TARGET
|
rsync -av --delete-after ~/openmptcprouter/$OMR_TARGET/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/$OMR_TARGET
|
||||||
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
rm -rf ~/openmptcprouter/$OMR_TARGET/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -406,7 +463,7 @@ jobs:
|
||||||
name: Deploy wrt3200acm
|
name: Deploy wrt3200acm
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/wrt3200acm/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/wrt3200acm
|
rsync -av --delete-after ~/openmptcprouter/wrt3200acm/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/wrt3200acm
|
||||||
rm -rf ~/openmptcprouter/wrt3200acm/source/bin
|
rm -rf ~/openmptcprouter/wrt3200acm/source/bin
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
|
@ -438,7 +495,7 @@ jobs:
|
||||||
name: Deploy wrt32x
|
name: Deploy wrt32x
|
||||||
command: |
|
command: |
|
||||||
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
ssh -p ${OMR_DEPLOY_PORT:-22} deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
||||||
rsync -av --delete-after ~/openmptcprouter/wrt32x/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/wrt32x
|
rsync -av --delete-after ~/openmptcprouter/wrt32x/source/bin/ -e "ssh -q -p ${OMR_DEPLOY_PORT:-22}" deploy@$OMR_DEPLOY_HOST:deploy/release/${OMR_KERNEL:-4.14}/wrt32x
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue