Skip to content

Commit

Permalink
Merge pull request #8050 from jandubois/windows-yq
Browse files Browse the repository at this point in the history
Move yq install on Windows to setup-environment action
  • Loading branch information
jandubois authored Jan 7, 2025
2 parents 1968aa2 + 573173b commit 75c9d9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
16 changes: 16 additions & 0 deletions .github/actions/setup-environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ runs:
# Setting the default version also lets WSL finish updating.
wsl --set-default-version 2
- name: "Windows: Install yq"
if: runner.os == 'Windows'
shell: bash
run: |
set -o xtrace
bindir="$HOME/bin"
if [[ ! "$PATH" =~ "$bindir" ]]; then
bindir=/usr/bin
fi
if ! command -v yq; then
mkdir -p "$bindir"
curl --location --output "$bindir/yq.exe" \
https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_windows_amd64.exe
chmod a+x "$bindir/yq.exe"
fi
- name: "Linux: Enable KVM access"
if: runner.os == 'Linux'
shell: bash
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,6 @@ jobs:
exec xvfb-run --auto-servernum
--server-args='-screen 0 1280x960x24'
- name: "Windows: Install yq"
if: runner.os == 'Windows'
run: |
set -o xtrace
bindir="$HOME/bin"
if [[ ! "$PATH" =~ "$bindir" ]]; then
bindir=/usr/bin
fi
if ! command -v yq; then
mkdir -p "$bindir"
curl --location --output "$bindir/yq.exe" \
https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_windows_amd64.exe
chmod a+x "$bindir/yq.exe"
fi
shell: bash
- name: Set log directory
shell: bash
Expand Down

0 comments on commit 75c9d9d

Please sign in to comment.