Skip to content

Commit 3b47381

Browse files
winitzkimmhat
andauthored
enable macos 86/arm release (#2590)
* responding to comments from mmhat to enable macos 86/arm release * wip * wip * disable build * Update .github/workflows/main.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * Update .github/workflows/main.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * Update .github/workflows/main.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * Update .github/workflows/main.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * Update .github/workflows/main.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * Update .mergify.yml Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com> * enable build --------- Co-authored-by: Mann mit Hut <mmhat@users.noreply.github.com>
1 parent e79e4c2 commit 3b47381

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
- name: "Cache"
4949
uses: actions/cache@v3
5050
with:
51-
key: ${{ matrix.os.runner }}-${{ hashFiles(matrix.stack-yaml) }}-${{ env.cache_generation }}
51+
key: ${{ matrix.os.runner }}-${{ runner.arch }}-${{ hashFiles(matrix.stack-yaml) }}-${{ env.cache_generation }}
5252
restore-keys: |
53-
${{ matrix.os.runner }}-
53+
${{ matrix.os.runner }}-${{ runner.arch }}-
5454
path: |
5555
${{ steps.setup-haskell-cabal.outputs.stack-root }}
5656
- name: Install libsodium
@@ -131,14 +131,12 @@ jobs:
131131
dhall-yaml
132132
)
133133
134-
architecture="$(uname -m)"
135-
136134
function package() (
137135
local package="${1}"
138136
local version="$(stack query locals "${package}" version)"
139137
shift
140138
local assets=("${@}")
141-
local package_file="${package}-${version}-${architecture}-${{runner.os}}.${{ matrix.os.file-extension }}"
139+
local package_file="${package}-${version}-${{ runner.os }}-${{ runner.arch }}.${{ matrix.os.file-extension }}"
142140
${{matrix.os.archive-command}} "${package_file}" "${assets[@]}"
143141
)
144142
@@ -159,5 +157,5 @@ jobs:
159157
if: ${{ matrix.stack-yaml == 'stack.yaml' }}
160158
uses: actions/upload-artifact@v3
161159
with:
162-
name: 'dhall-${{runner.os}}.${{matrix.os.file-extension}}'
163-
path: 'dhall-*${{runner.os}}.${{matrix.os.file-extension}}'
160+
name: 'dhall-${{ runner.os }}-${{ runner.arch }}.${{ matrix.os.file-extension }}'
161+
path: 'dhall-*${{ runner.os }}-${{ runner.arch }}.${{ matrix.os.file-extension }}'

0 commit comments

Comments
 (0)