diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f59d89f --- /dev/null +++ b/appveyor.yml @@ -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 diff --git a/build-amd64.sh b/build-amd64.sh index 407bfc8..c56b929 100755 --- a/build-amd64.sh +++ b/build-amd64.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/build-l4t.sh b/build-l4t.sh index a4b46c1..4f488bd 100755 --- a/build-l4t.sh +++ b/build-l4t.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/build-rpi.sh b/build-rpi.sh index 791c05b..2389d44 100755 --- a/build-rpi.sh +++ b/build-rpi.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file