-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GitHub Actions workflow for ARM64
This also updates release.hs to use a more recent resolver, since otherwise we'll have trouble on ARM64 with conflicting LLVM installations. Unlike #5552, I took the simple workaround here of installing GHC 8.6.5 in addition to the more recent GHC needed by release.hs.
- Loading branch information
Showing
2 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: ARM64 Release | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable | ||
- rc/** | ||
tags: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
arm64: | ||
name: Unit tests | ||
runs-on: [self-hosted, linux, ARM64] | ||
steps: | ||
- name: Clone project | ||
uses: actions/checkout@v2 | ||
- shell: bash | ||
run: | | ||
set -ex | ||
mkdir -p ~/.local/bin | ||
stack upgrade || curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.7.1/stack-2.7.1-linux-aarch64.bin > ~/.local/bin/stack | ||
chmod +x ~/.local/bin/stack | ||
~/.local/bin/stack etc/scripts/release.hs build | ||
- name: Upload bindist | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ runner.os }} | ||
path: _release/stack-* |
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