Skip to content

Commit

Permalink
CI: {cache-deps,test}: fix expressions & org platform step names
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha committed Dec 1, 2021
1 parent 0b79039 commit dc4787b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cache-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.4"

- if: matrix.os == 'windows-latest'
name: Set some window specific things
- if: runner.os == 'Windows'
name: (Windows) Platform config
run: |
echo "CABAL_PKGS_DIR=~\\AppData\\cabal\\packages" >> $GITHUB_ENV
- if: (${{ env.RUNNER_OS }} == 'Linux') || (${{ env.RUNNER_OS}} == 'macOS')
name: Set some Linux/macOS specific things
- if: ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
name: (Linux,macOS) Platform config
run: |
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
Expand Down Expand Up @@ -87,8 +87,8 @@ jobs:
- run: cabal update

# Work around for filepath length limits in Windows
- if: ${{ env.RUNNER_OS }} == 'Windows'
name: Shorten binary names
- if: runner.os == 'Windows'
name: (Windows) Shorten binary names
run: |
sed -i.bak -e 's/haskell-language-server/hls/g' \
-e 's/haskell_language_server/hls/g' \
Expand All @@ -100,6 +100,6 @@ jobs:
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies

# repeating builds to workaround segfaults in windows and ghc-8.8.4
- if: ${{ env.RUNNER_OS }} == 'Windows'
name: In Windows run build additional 2 times
- if: runner.os == 'Windows'
name: (Windows) Run build additional 2 times
run: cabal v2-build --enable-tests --enable-benchmarks --only-dependencies || cabal v2-build --enable-tests --enable-benchmarks --only-dependencies
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ jobs:
- run: ./fmt.sh
name: "HLint via ./fmt.sh"

- if: ${{ env.RUNNER_OS }} == 'Windows'
name: Set some window specific things
- if: runner.os == 'Windows'
name: (Windows) Platform config
run: |
echo "CABAL_PKGS_DIR=~\\AppData\\cabal\\packages" >> $GITHUB_ENV
- if: (${{ env.RUNNER_OS }} == 'Linux') || (${{ env.RUNNER_OS}} == 'macOS')
name: Set some Linux/macOS specific things
- if: ( runner.os == 'Linux' ) || ( runner.os == 'macOS' )
name: (Linux,macOS) Platform config
run: |
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
Expand Down Expand Up @@ -127,8 +127,8 @@ jobs:
- run: cabal update

# Work around for filepath length limits in Windows
- if: ${{ env.RUNNER_OS }} == 'Windows'
name: Shorten binary names
- if: runner.os == 'Windows'
name: (Windows) Shorten binary names
run: |
sed -i.bak -e 's/haskell-language-server/hls/g' \
-e 's/haskell_language_server/hls/g' \
Expand All @@ -140,8 +140,8 @@ jobs:
run: cabal v2-build

# repeating builds to workaround segfaults in windows and ghc-8.8.4
- if: ${{ env.RUNNER_OS }} == 'Windows'
name: In Windows run build additional 2 times
- if: runner.os == 'Windows'
name: (Windows) Run build additional 2 times
run: cabal v2-build || cabal v2-build

- name: Set test options
Expand Down

0 comments on commit dc4787b

Please sign in to comment.