From 0203c1695d3122d324a17d882636a358d25edec6 Mon Sep 17 00:00:00 2001 From: Marco Antonio Jaguaribe Costa Date: Mon, 23 Oct 2023 18:41:54 -0300 Subject: [PATCH] Unbreak Github Actions our CI expects GameVersion.cpp to be at the root directory. just unbreak for now. --- .github/workflows/build_language.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_language.yml b/.github/workflows/build_language.yml index bea5a00aa..f82f27545 100644 --- a/.github/workflows/build_language.yml +++ b/.github/workflows/build_language.yml @@ -41,6 +41,7 @@ jobs: shell: bash run: cat artifacts/versions.env >> $GITHUB_ENV + # TODO: Move this into CMake, just taking the GitHub Actions parameters as -D variables - name: Update GameVersion.cpp shell: bash run: | @@ -49,9 +50,9 @@ jobs: GAME_VERSION=$(echo "$GAME_VERSION" | tr -cd '[:print:]' | tr -d '"\\') GAME_BUILD="${INPUTS_LANGUAGE:0:2} $GAME_BUILD_INFORMATION" GAME_BUILD=$(echo "$GAME_BUILD" | tr -cd '[:print:]' | tr -d '"\\') - sed -i "s|@Version@|${GAME_VERSION:0:15}|" GameVersion.cpp - sed -i "s|@Build@|${GAME_BUILD:0:255}|" GameVersion.cpp - cat GameVersion.cpp + sed -i "s|@Version@|${GAME_VERSION:0:15}|" Ja2/GameVersion.cpp + sed -i "s|@Build@|${GAME_BUILD:0:255}|" Ja2/GameVersion.cpp + cat Ja2/GameVersion.cpp - name: Prepare build properties shell: bash