Skip to content

Commit 5580b64

Browse files
committed
fix github yaml
1 parent e796048 commit 5580b64

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ permissions:
1313
jobs:
1414
# ───────────────────────────────────────────────────────── build ──
1515
build:
16-
env: { SHORT_SHA: ${{ github.sha }} }
16+
env: # ←─ use block style, no braces
17+
SHORT_SHA: ${{ github.sha }}
1718
strategy:
1819
matrix:
1920
include:
@@ -29,7 +30,7 @@ jobs:
2930
runs-on: ${{ matrix.os }}
3031

3132
steps:
32-
# 1) checkout & deps (same as before) ────────────────────────────
33+
# 1) checkout & deps ─────────────────────────────────────────────
3334
- uses: actions/checkout@v4
3435

3536
- name: Install packages (apt)
@@ -50,7 +51,7 @@ jobs:
5051
- name: Verify Ninja on PATH
5152
run: ninja --version
5253

53-
# 2) unzip engine files (unchanged) ────────────────────────────
54+
# 2) unzip engine files ──────────────────────────────────────────
5455
- name: Unzip Engine files (Linux)
5556
if: matrix.isLinux
5657
run: |
@@ -65,7 +66,7 @@ jobs:
6566
Get-ChildItem third_party/EE -Filter '*.zip' |
6667
ForEach-Object { Expand-Archive $_.FullName -DestinationPath third_party/EE -Force }
6768
68-
# 3) configure → build → test (unchanged) ──────────────────────
69+
# 3) configure → build → test ───────────────────────────────────
6970
- name: Configure
7071
run: cmake --preset ${{ matrix.cfg }}
7172

@@ -75,7 +76,7 @@ jobs:
7576
- name: Run unit tests
7677
run: ctest --test-dir out/build/${{ matrix.cfg }} --output-on-failure
7778

78-
# 4) package + produce ONE archive per platform ────────────────
79+
# 4) package + archive ──────────────────────────────────────────
7980
- name: Package & archive (Linux)
8081
if: matrix.isLinux
8182
run: |
@@ -90,7 +91,7 @@ jobs:
9091
9192
ARCHIVE=linux_binaries_${SHORT_SHA:0:8}.tar.gz
9293
tar -czf "$ARCHIVE" -C "$STAGE" .
93-
echo "ARCHIVE_PATH=$ARCHIVE" >> $GITHUB_ENV # ←─ NEW
94+
echo "ARCHIVE_PATH=$ARCHIVE" >> $GITHUB_ENV
9495
9596
- name: Package & archive (Windows)
9697
if: matrix.os == 'windows-2022'
@@ -104,17 +105,17 @@ jobs:
104105
Copy-Item "assets/Engine.pak" "$Stage/Bin/Engine.pak"
105106
Copy-Item "assets/Project.pak" "$Stage/Bin/Project.pak"
106107
107-
$sha = $env:SHORT_SHA.Substring(0,8)
108-
$archive= "windows_binaries_${sha}.zip"
108+
$sha = $env:SHORT_SHA.Substring(0,8)
109+
$archive = "windows_binaries_${sha}.zip"
109110
Compress-Archive -Path "$Stage/*" -DestinationPath $archive
110-
echo "ARCHIVE_PATH=$archive" >> $env:GITHUB_ENV # ←─ NEW
111+
echo "ARCHIVE_PATH=$archive" >> $env:GITHUB_ENV
111112
112-
# 5) upload exactly that archive (no wildcards) ────────────────
113+
# 5) upload exactly that one file ────────────────────────────────
113114
- name: Upload platform archive
114115
uses: actions/upload-artifact@v4
115116
with:
116117
name: binaries-${{ matrix.os }}
117-
path: ${{ env.ARCHIVE_PATH }} # ←─ CHANGED
118+
path: ${{ env.ARCHIVE_PATH }}
118119
retention-days: 2
119120

120121
# ───────────────────────────────────────────────────── release ──
@@ -139,7 +140,6 @@ jobs:
139140
echo "timestamp=$(date -u +'%Y-%m-%d %H:%M UTC')" >> $GITHUB_OUTPUT
140141
echo "short_sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT
141142
142-
# upload ONLY .zip and .tar.gz (nothing else)
143143
- name: Publish Latest release
144144
uses: softprops/action-gh-release@v2
145145
with:
@@ -152,4 +152,4 @@ jobs:
152152
(${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}).
153153
files: |
154154
release/*.zip
155-
release/*.tar.gz # ←─ CHANGED
155+
release/*.tar.gz

0 commit comments

Comments
 (0)