From da2c89aa531fc78a087f611280748e5fdb6b3216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Mon, 2 Oct 2023 16:49:21 -0300 Subject: [PATCH] ci: enable M1 runners for CI job --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da9d2b988..1e5b7b421 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: container: "{\"image\": \"elopeztob/alpine-haskell-stack-echidna:9.2.7\", \"options\": \"--user 1001\"}" - os: macos-latest shell: bash + - os: macos-latest-xlarge + shell: bash - os: windows-latest shell: msys2 {0} @@ -76,7 +78,7 @@ jobs: path: | ~/.local D:\a\_temp\msys64\home\runneradmin\.local - key: ${{ runner.os }}-local-${{ env.CACHE_VERSION }}-${{ hashFiles('.github/scripts/install-*') }} + key: ${{ runner.os }}-${{ runner.arch }}-local-${{ env.CACHE_VERSION }}-${{ hashFiles('.github/scripts/install-*') }} - name: Cache Stack & Cabal uses: actions/cache@v3 @@ -87,7 +89,7 @@ jobs: ${{ steps.stack.outputs.stack-root || '~/.stack' }}/* !${{ steps.stack.outputs.stack-root || '~/.stack' }}/pantry/hackage/*.tar !${{ steps.stack.outputs.stack-root || '~/.stack' }}/pantry/hackage/*.tar.gz - key: ${{ runner.os }}-stack-${{ env.CACHE_VERSION }}-${{ hashFiles('package.yaml', 'stack.yaml') }} + key: ${{ runner.os }}-${{ runner.arch }}-stack-${{ env.CACHE_VERSION }}-${{ hashFiles('package.yaml', 'stack.yaml') }} - name: Build Libraries run: | @@ -119,7 +121,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: echidna-${{ runner.os }} + name: echidna-${{ runner.os }}-${{ runner.arch }} path: echidna.tar.gz - name: Build and copy test suite