Skip to content

Commit

Permalink
fixup: escape quotes for cmd.exe, don't use here-string
Browse files Browse the repository at this point in the history
  • Loading branch information
sturnclaw committed Jan 31, 2024
1 parent b42b942 commit ff97425
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ jobs:
- name: Build MSVC
shell: cmd
run: |
echo $(echo "${{ github.ref }}" | awk -F "/" "/pulls/ { print \"PR#\"$3 } /heads/ { print $3 }")
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd pioneer
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="C:/Program Files/Pioneer" -DPIONEER_DATA_DIR="C:/Program Files/Pioneer/data" -DCMAKE_BUILD_TYPE:STRING=Release -DGIT_EXECUTABLE="c:/Program Files/Git/cmd/git.exe" -DPROJECT_VERSION_INFO=$(echo "${{ github.ref }}" | awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }')
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="C:/Program Files/Pioneer" -DPIONEER_DATA_DIR="C:/Program Files/Pioneer/data" -DCMAKE_BUILD_TYPE:STRING=Release -DGIT_EXECUTABLE="c:/Program Files/Git/cmd/git.exe" -DPROJECT_VERSION_INFO=$(echo "${{ github.ref }}" | awk -F "/" "/pulls/ { print \"PR#\"$3 } /heads/ { print $3 }")
cmake --build .
- name: Build Pioneer Data
Expand Down Expand Up @@ -109,8 +110,8 @@ jobs:
run: |
cp scripts/CMakeBuildPresetsCI.json CMakeUserPresets.json
# Test automatic reflog generation
awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }' <<< "${{ github.ref }}"
cmake -G Ninja --preset linux-x64-release -DPROJECT_VERSION_INFO=$(awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }' <<< "${{ github.ref }}" )
echo $(echo "${{ github.ref }}" | awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }')
cmake -G Ninja --preset linux-x64-release -DPROJECT_VERSION_INFO=$(echo "${{ github.ref }}" | awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }')
- name: Build GCC
run: cmake --build ./build --target all
Expand Down Expand Up @@ -144,7 +145,7 @@ jobs:
- name: Setup CMake
run: |
cp scripts/CMakeBuildPresetsCI.json CMakeUserPresets.json
cmake -G Ninja --preset linux-x64-release-avx -DPROJECT_VERSION_INFO=$(awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }' <<< "${{ github.ref }}" )
cmake -G Ninja --preset linux-x64-release-avx -DPROJECT_VERSION_INFO=$(echo "${{ github.ref }}" | awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }')
- name: Build GCC
run: cmake --build ./build --target all
Expand Down Expand Up @@ -181,7 +182,7 @@ jobs:
run: |
cp scripts/CMakeBuildPresetsCI.json CMakeUserPresets.json
export CC=clang CXX=clang++
cmake -G Ninja --preset linux-x64-release -DPROJECT_VERSION_INFO=$(awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }' <<< "${{ github.ref }}" )
cmake -G Ninja --preset linux-x64-release -DPROJECT_VERSION_INFO=$(echo "${{ github.ref }}" | awk -F '/' '/pulls/ { print "PR#"$3 } /heads/ { print $3 }')
- name: Build Clang
run: cmake --build ./build --target all
Expand Down

0 comments on commit ff97425

Please sign in to comment.