Skip to content

Commit

Permalink
fix: windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jun 14, 2022
1 parent c351672 commit 6ede720
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/test-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ on:
branches: [main]
jobs:
default:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-latest
runs-on: ${{ matrix.env.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: ./
Expand All @@ -20,7 +25,12 @@ jobs:
- run: github-comment -v
working-directory: tests
set-absolute-path:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-latest
runs-on: ${{ matrix.env.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: ./
Expand All @@ -30,7 +40,12 @@ jobs:
working_directory: tests
- run: /tmp/bin/aqua -v
set-relative-path:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-latest
runs-on: ${{ matrix.env.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: ./
Expand Down
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ runs:
shell: bash
working-directory: ${{ inputs.working_directory }}
if: inputs.enable_aqua_install == 'true'
- run: |
echo "${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
bash: pwsh
if: runner.os == 'Windows' and inputs.enable_aqua_install == 'true'
working-directory: ${{ inputs.working_directory }}
- run: bash "${{github.action_path}}/action.sh"
working-directory: ${{ inputs.working_directory }}
Expand Down

0 comments on commit 6ede720

Please sign in to comment.