diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 2bd4075c27..25c454e126 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -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 @@ -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 @@ -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 @@ -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