From 36b378d3fcda05ec85bfa12f0234a0b4462eb8c5 Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 28 Nov 2023 17:11:08 +0000 Subject: [PATCH] Compile for arm64 in GitHub Actions Cross-architecture compile for arm64 on GitHub Actions' ubuntu-latest hosted runner. See https://learn.microsoft.com/dotnet/core/deploying/native-aot/cross-compile#linux. Effectively a revert of #973. --- .dockerignore | 26 -------------------------- .github/dependabot.yml | 8 -------- .github/workflows/build.yml | 15 +++++++++++++++ Dockerfile | 18 ------------------ build.ps1 | 2 +- 5 files changed, 16 insertions(+), 53 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index cb71a42f..00000000 --- a/.dockerignore +++ /dev/null @@ -1,26 +0,0 @@ -**/.DS_Store -**/.dockerignore -**/.env -**/.git -**/.gitignore -**/.project -**/.settings -**/.toolstarget -**/.vs -**/.vscode -**/*.*proj.user -**/*.dbmdl -**/artifacts -**/bin -**/charts -**/docker-compose* -**/compose* -**/Dockerfile* -**/obj -**/secrets.dev.yaml -**/values.dev.yaml -LICENSE -README.md -!.git/HEAD -!.git/config -!.git/refs/heads/ diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 35488cd4..7f2f1b2f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,13 +1,5 @@ version: 2 updates: -- package-ecosystem: docker - directory: "/" - schedule: - interval: daily - time: "05:30" - timezone: Europe/London - reviewers: - - "martincostello" - package-ecosystem: "github-actions" directory: "/" schedule: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cc6104f..e0ac8ee6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,21 @@ jobs: steps: + - name: Setup arm64 support for native AoT + if: runner.os == 'Linux' + shell: bash + run: | + dpkg --add-architecture arm64 + bash -c 'cat > /etc/apt/sources.list.d/arm64.list <