Skip to content

Commit

Permalink
CI: adding MSYS2 to PATH interferes with cache action, so postpone
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Feb 26, 2023
1 parent 55327b0 commit bdcfde6
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ jobs:

- uses: actions/checkout@v3

- name: Setup MSYS2 (Windows)
if: ${{ runner.os == 'Windows' }}
run: echo "C:\msys64\mingw64\bin;C:\msys64\usr\bin" >> "${GITHUB_PATH}"

- name: Info about command-line tools used in test-suite
run: |
which bash
which cat
which echo
continue-on-error: true

- name: Setup Haskell Stack
uses: haskell/actions/setup@v2
id: setup
Expand Down Expand Up @@ -76,6 +65,38 @@ jobs:
# Should not error.
# continue-on-error: true

- name: Info about command-line tools used in test-suite
run: |
which bash
which cat
which echo
continue-on-error: true

- name: Info about command-line tools used in test-suite (via stack exec)
run: |
${STACK} exec which bash
${STACK} exec which cat
${STACK} exec which echo
continue-on-error: true

- name: Setup MSYS2 (Windows)
if: ${{ runner.os == 'Windows' }}
run: echo "C:\msys64\mingw64\bin;C:\msys64\usr\bin" >> "${GITHUB_PATH}"

- name: Info about command-line tools used in test-suite
run: |
which bash
which cat
which echo
continue-on-error: true

- name: Info about command-line tools used in test-suite (via stack exec)
run: |
${STACK} exec which bash
${STACK} exec which cat
${STACK} exec which echo
continue-on-error: true

- name: Test
run: ${STACK} test --test-arguments --diff

Expand Down

0 comments on commit bdcfde6

Please sign in to comment.