Add AppVeyor CI
This commit is contained in:
25
appveyor.yml
Normal file
25
appveyor.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: 0.0.0.{build}
|
||||
|
||||
clone_depth: 1
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
|
||||
BUILD_SCRIPT: ./build-amd64.sh
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
|
||||
BUILD_SCRIPT: ./build-rpi.sh
|
||||
|
||||
install:
|
||||
- sh: 'sudo apt install -y qemu binfmt-support qemu-user-static'
|
||||
- sh: 'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes'
|
||||
|
||||
before_build:
|
||||
- sh: 'git submodule update --init --recursive'
|
||||
|
||||
build_script:
|
||||
- sh: 'sh -c $BUILD_SCRIPT'
|
||||
|
||||
after_build:
|
||||
- sh: 'appveyor PushArtifact out_*/*'
|
||||
|
||||
deploy: off
|
||||
@@ -8,4 +8,4 @@ set -e
|
||||
mkdir $OUT_DIR
|
||||
|
||||
docker build -f $DOCKERFILE -t cgutman/moonlight-packaging:$TAG_NAME .
|
||||
docker run -it --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
docker run --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
@@ -8,4 +8,4 @@ set -e
|
||||
mkdir $OUT_DIR
|
||||
|
||||
docker build -f $DOCKERFILE -t cgutman/moonlight-packaging:$TAG_NAME .
|
||||
docker run -it --rm --runtime nvidia --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
docker run --rm --runtime nvidia --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
@@ -8,4 +8,4 @@ set -e
|
||||
mkdir $OUT_DIR
|
||||
|
||||
docker build -f $DOCKERFILE -t cgutman/moonlight-packaging:$TAG_NAME .
|
||||
docker run -it --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
docker run --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$1" cgutman/moonlight-packaging:$TAG_NAME
|
||||
Reference in New Issue
Block a user