Skip to content

Commit 2855fa5

Browse files
committed
CI
1 parent e426fca commit 2855fa5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
run: |
4242
echo '#pragma once' > game/build.h
4343
echo "static const char* appBuild = \"${{ needs.setup.outputs.version }}\";" >> game/build.h
44-
echo 'gothic-linux-v${{ needs.setup.outputs.version }}' >> build/opengothic/VERSION
44+
mkdir -p build/opengothic
45+
echo 'gothic-linux-v${{ needs.setup.outputs.semver }}' >> build/opengothic/VERSION
4546
4647
- name: Configure
4748
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
@@ -113,7 +114,8 @@ jobs:
113114
run: |
114115
echo '#pragma once' > game/build.h
115116
echo "static const char* appBuild = `"${{ needs.setup.outputs.version }}`";" >> game/build.h
116-
echo 'gothic-win64-v${{ needs.setup.outputs.version }}' >> build/opengothic/VERSION
117+
mkdir -p build/opengothic
118+
echo 'gothic-win64-v${{ needs.setup.outputs.semver }}' >> build/opengothic/VERSION
117119
118120
- name: Configure
119121
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
@@ -151,7 +153,8 @@ jobs:
151153
run: |
152154
echo '#pragma once' > game/build.h
153155
echo "static const char* appBuild = \"${{ needs.setup.outputs.version }}\";" >> game/build.h
154-
echo 'gothic-osx-arm64-v${{ needs.setup.outputs.version }}' >> build/opengothic/VERSION
156+
mkdir -p build/opengothic
157+
echo 'gothic-osx-arm64-v${{ needs.setup.outputs.semver }}' >> build/opengothic/VERSION
155158
156159
- name: Configure
157160
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
@@ -181,7 +184,8 @@ jobs:
181184
run: |
182185
echo '#pragma once' > game/build.h
183186
echo "static const char* appBuild = \"${{ needs.setup.outputs.version }}\";" >> game/build.h
184-
echo 'gothic-osx-x64-v${{ needs.setup.outputs.version }}' >> build/opengothic/VERSION
187+
mkdir -p build/opengothic
188+
echo 'gothic-osx-x64-v${{ needs.setup.outputs.semver }}' >> build/opengothic/VERSION
185189
186190
- name: Configure
187191
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}

0 commit comments

Comments
 (0)