Skip to content

Commit

Permalink
Watch out for backslashes in bash shells
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 5, 2024
1 parent 358d1b7 commit dbea42c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ jobs:
set -ex -o pipefail
PATH="${{ github.workspace }}/${{ env.llvm_package_basename }}/bin:$PATH" \
hylo/Tools/make-pkgconfig.sh llvm.pc
echo 'PKG_CONFIG_PATH=${{ github.workspace }}' >> $GITHUB_ENV
shell: bash

- uses: actions/cache@v4
Expand All @@ -213,17 +212,20 @@ jobs:
echo 'SPM_BUILD_TOOL_SUPPORT_NO_REENTRANT_BUILD=1' >> $env:GITHUB_ENV
swift build --explicit-target-dependency-import-check=error --pkg-config-path . --target BuildToolDependencies
working-directory: hylo
env:
PKG_CONFIG_PATH: ${{ github.workspace }}

- name: Build
run: swift build -c ${{ matrix.configuration }} ${{ env.build-options }}
working-directory: hylo
env:
PKG_CONFIG_PATH: ${{ github.workspace }}

- name: Test
run: swift test -c ${{ matrix.configuration }} ${{ env.test-options }} --parallel ${{ matrix.test_verification }}
working-directory: hylo
env:
PKG_CONFIG_PATH: ${{ github.workspace }}

- name: Output compiler version
run: .build/${{ matrix.configuration }}/hc --version

- name: Output compiler version
run: .build/debug/hc --version

0 comments on commit dbea42c

Please # to comment.