Skip to content

Commit

Permalink
ci: enable M1 runners for CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Oct 2, 2023
1 parent 31c187b commit 69d6764
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -35,7 +37,7 @@ jobs:
steps:
- name: Get Packages (macOS)
if: runner.os == 'macOS'
run: brew install automake
run: brew install autoconf automake gmp libtool

- name: Get Packages (Windows)
uses: msys2/setup-msys2@v2
Expand All @@ -59,7 +61,7 @@ jobs:
openssl:p
- name: Install Stack
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: stack
if: matrix.container == ''
with:
Expand All @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 69d6764

Please sign in to comment.