Skip to content

Commit ec68711

Browse files
committed
fix: release workflow not building for linux and missing assets
1 parent c163f5e commit ec68711

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v4
3737

38+
- name: Install musl-tools
39+
run: |
40+
sudo apt-get update -y
41+
sudo apt-get install -y musl-tools
42+
3843
- name: Add Rust target
3944
run: rustup target add ${{ matrix.target }}
4045

@@ -57,6 +62,7 @@ jobs:
5762
run: |
5863
mkdir -p artifacts
5964
cp target/${{ matrix.target }}/release/${{ env.BINARY_NAME }} artifacts/
65+
cp -R data/generated artifacts/assets
6066
cd artifacts && tar -czf ../${{ env.BINARY_NAME }}_${{ matrix.name }}.tar.gz *
6167
6268
- name: Upload artifacts
@@ -94,6 +100,7 @@ jobs:
94100
run: |
95101
mkdir -p artifacts
96102
cp target/aarch64-apple-darwin/release/${{ env.BINARY_NAME }} artifacts/
103+
cp -R data/generated artifacts/assets
97104
cd artifacts && tar -czf ../${{ env.BINARY_NAME }}_macos-aarch64.tar.gz *
98105
99106
- name: Upload artifacts
@@ -128,7 +135,8 @@ jobs:
128135
run: |
129136
mkdir artifacts
130137
Copy-Item "target/x86_64-pc-windows-msvc/release/${{ env.BINARY_NAME }}.exe" artifacts/
131-
Compress-Archive -Path artifacts/* -DestinationPath "${{ env.BINARY_NAME }}_windows-x86_64.zip"
138+
Copy-Item "data/generated" "artifacts/assets" -Recurse
139+
Compress-Archive -Path artifacts/* -DestinationPath "${{ env.BINARY_NAME }}_windows-x86_64.zip" -Force
132140
133141
- name: Upload artifacts
134142
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)