-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
36 lines (33 loc) · 1.77 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: Visual Studio 2022
#image: macos
#image: Ubuntu2204
environment:
BUILDKIT_PROGRESS: plain
build_script:
- sh: |
docker run --privileged --rm tonistiigi/binfmt --install all
git clone https://github.com/am11/CrossRepoCITesting
cd CrossRepoCITesting/linux-arm-aot
docker build . -t armv7-nativeaot-webapi
sudo apt install -y jq
# create a temporary instance and copy the artifacts locally
docker cp $(docker create --name webapi1 armv7-nativeaot-webapi):/dist/webapi1 .
docker rm webapi1
# start webapi1 app in arm/v7 container with background (trailing &)
docker run -e 'ASPNETCORE_URLS=http://*:8080' --rm -v$(pwd):/app --platform linux/arm/v7 \
-p 8080:8080 ubuntu /app/webapi1 &
# sleep a while to let the webapi1 startup
sleep 15
# test
curl -v http://localhost:8080/todos | jq
init:
# - sh: git clone https://github.com/am11/CrossRepoCITesting; cd CrossRepoCITesting/dir1; docker build --progress=plain -t dir1-testing .
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
# - sh: |
# git clone https://github.com/am11/runtime --single-branch --depth 1 -b feature/tests/published-crossgen2
# cd runtime
# eng/install-native-dependencies.sh
# ./build.sh -configuration Release -arch arm64 /p:RuntimeConfiguration=release /p:LibrariesConfiguration=Debug /p:PortableBuild=true /p:SkipTests=True /p:RuntimeFlavor=coreclr /p:TargetArchitecture=arm64 /p:CrossBuild=true -v:diag > dump
# du -sh dump
# bash -c 'cat dump | curl -F"sprunge=<-" http://sprunge.us'