NativeAOT arm32 with .NET 9 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NativeAOT arm32 with .NET 9 | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build and test | |
run: | | |
export | |
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 | |
# create a temporary instance and copy the artifacts locally | |
docker cp $(docker create --name webapi1 armv7-nativeaot-webapi):/dist/webapi1 . | |
docker rm webapi1 | |
docker run -e 'ASPNETCORE_URLS=http://*:8080' --rm -v$(pwd):/app --platform linux/arm/v7 \ | |
-p 8080:8080 ubuntu /app/webapi1 & | |
sleep 5 | |
# test | |
curl -v http://localhost:8080/todos | jq |