Add AppVeyor CI

This commit is contained in:
Cameron Gutman
2021-01-15 20:27:33 -06:00
parent 4313babeba
commit 86bb2c8615
4 changed files with 28 additions and 3 deletions

25
appveyor.yml Normal file
View 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

View File

@@ -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

View File

@@ -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

View File

@@ -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