Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use msys shell to install tebako gem on Windows #271

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/actions/setup-tebako/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ runs:
steps:
- name: Prepare compiler environment
shell: sh
# [TODO]
# This is really bad selector:
# if [ "${{ runner.arch }}" = "X64" ]; then
run: |
OS=$(uname -s)
if [ "$OS" = "Linux" ] && [ -e "/etc/lsb-release" ]; then
Expand Down Expand Up @@ -151,13 +148,13 @@ runs:
gem install bundler

- name: Select XCode
if: runner.os == 'macOS'
if: env.TOOLCHAIN == 'macos-arm64' || env.TOOLCHAIN == 'macos-x86_64'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}

- name: Install brew packages
if: runner.os == 'macOS'
if: env.TOOLCHAIN == 'macos-arm64' || env.TOOLCHAIN == 'macos-x86_64'
shell: bash
run: |
if [ ! -f Brewfile ]; then
Expand Down Expand Up @@ -203,9 +200,9 @@ runs:
shell: sh
run: gem install tebako

- name: Install tebako
- name: Install tebako on MSys
if: env.TOOLCHAIN == 'msys' && inputs.install != 'off'
shell: sh
shell: msys2 {0}
run: |
git config --global core.longpaths true
gem install tebako
Expand All @@ -221,9 +218,9 @@ runs:
shell: sh
run: echo "key=$(tebako hash)" >> $GITHUB_OUTPUT

- name: Create cache key
- name: Create cache key on MSys
if: env.TOOLCHAIN == 'msys' && inputs.cache != 'off'
id: cache-key-mingw
id: cache-key-msys
shell: msys2 {0}
run: echo "key=$(tebako hash)" >> $GITHUB_OUTPUT

Expand All @@ -232,5 +229,5 @@ runs:
uses: actions/cache@v4
with:
path: ${{ inputs.cache_path }}
key: ${{ env.TOOLCHAIN }}-${{ env.CC }}-${{ steps.cache-key.outputs.key }}-${{ steps.cache-key-mingw.outputs.key }}-v${{ inputs.cache_ver }}
key: ${{ env.TOOLCHAIN }}-${{ env.CC }}-${{ steps.cache-key.outputs.key }}-${{ steps.cache-key-msys.outputs.key }}-v${{ inputs.cache_ver }}
fail-on-cache-miss: inputs.cache == 'use'
Loading