Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
use cygpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Mar 19, 2020
1 parent 193b699 commit b652a02
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
pkgs: [minimal, standard]

env:
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-homebrew-macos-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-cygwin-${{ matrix.pkgs }}

steps:
- run: git config --global core.autocrlf false
Expand All @@ -26,13 +26,9 @@ jobs:
run: |
PACKAGES=$(sed 's/#.*//;' ./build/pkgs/cygwin.txt ./build/pkgs/cygwin-bootstrap.txt)
choco install $PACKAGES --source cygwin
# trick from https://github.com/haproxy/haproxy/blob/master/.github/workflows/windows-latest.yml
- name: save pwd
run: |
C:\\tools\\cygwin\\bin\\bash -l -c 'pwd; env'
- name: bootstrap
run: |
C:\\tools\\cygwin\\bin\\bash -l -c 'cd "$OLDPWD" && env && ./bootstrap'
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && env && ./bootstrap'
- name: install additional cygwin packages with choco
if: matrix.pkgs == 'standard'
shell: bash {0}
Expand All @@ -41,10 +37,10 @@ jobs:
choco install $PACKAGES --source cygwin
- name: configure
run: |
C:\\tools\\cygwin\\bin\\bash -l -c 'cd "$OLDPWD" && ./configure'
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure'
- name: make
run: |
C:\\tools\\cygwin\\bin\\bash -l -c 'cd "$OLDPWD" && env && export MAKE="make -j8" && make -w V=0 all'
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && export MAKE="make -j8" && make -w V=0 all'
- name: Prepare logs artifact
shell: bash
run: |
Expand Down

0 comments on commit b652a02

Please sign in to comment.