Skip to content

Commit

Permalink
ci: Override Silicon settings on Intel macOS (3/n)
Browse files Browse the repository at this point in the history
Fix shell syntax

Part of diskuv/dkml-installer-ocaml#80
  • Loading branch information
jonahbeckford committed Nov 25, 2023
1 parent ee4e51b commit fe6ec1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions test/gh-darwin/pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ runs:
run: |
# Select correct Darwin matrix variables
dkml_host_os='darwin';
opam_root_cacheable='/Users/runner/.opam';
abi_pattern='macos-darwin_all';
gh_os='macos-13-xlarge';
gh_unix_shell='sh';
bootstrap_opam_version='2.2.0-alpha-20221228';
dkml_host_abi='darwin_arm64';
opam_root='/Users/runner/.opam' ;;
dkml_host_os='darwin'
opam_root_cacheable='/Users/runner/.opam'
abi_pattern='macos-darwin_all'
gh_os='macos-13-xlarge'
gh_unix_shell='sh'
bootstrap_opam_version='2.2.0-alpha-20221228'
dkml_host_abi='darwin_arm64'
opam_root='/Users/runner/.opam'
#
# note: All Darwin machines can cross-compile so are the same except dkml_host_abi.
dkml_host_abi='${{ matrix.dkml_host_abi }}';
# note: All Darwin machines can cross-compile so they are equal except [dkml_host_abi].
dkml_host_abi='${{ matrix.dkml_host_abi }}'
add() {
echo "$1=$2" | tee -a $GITHUB_OUTPUT | tee -a $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions tmpl/gh-darwin/pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ runs:
id: full_matrix_vars
run: |
# Select correct Darwin matrix variables
{% for (abi,abi_vars) in gh_vars %}{%- if abi_vars.dkml_host_os == "darwin" -%}{{ nl }} {% for (name,value) in abi_vars %}{{ name }}={{ squot }}{{ value }}{{ squot }} {%- if loop.last %} ;; {%- else -%} ; {%- endif %}{{ nl }} {% endfor %}{%- endif %}{% endfor %}#
{% for (abi,abi_vars) in gh_vars %}{%- if abi_vars.dkml_host_os == "darwin" -%}{{ nl }} {% for (name,value) in abi_vars %}{{ name }}={{ squot }}{{ value }}{{ squot }} {%- if loop.last %} {%- else -%} {%- endif %}{{ nl }} {% endfor %}{%- endif %}{% endfor %}#
# note: All Darwin machines can cross-compile so they are equal except [dkml_host_abi].
dkml_host_abi='{% raw -%}${{ matrix.dkml_host_abi }}{%- endraw %}';
dkml_host_abi='{% raw -%}${{ matrix.dkml_host_abi }}{%- endraw %}'
add() {
echo "$1=$2" | tee -a $GITHUB_OUTPUT | tee -a $GITHUB_ENV
Expand Down

0 comments on commit fe6ec1a

Please sign in to comment.