Skip to content

Commit d410321

Browse files
committed
fix build
1 parent f226339 commit d410321

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,18 @@ jobs:
4747
run: |
4848
cargo install cross
4949
cross build --release --target ${{ matrix.target }} --features no_format -p luals
50-
51-
- name: package
50+
- name: package-uninx
51+
if: ${{ matrix.os != 'windows-latest' }}
5252
run: |
53+
cp ${{ github.workspace }}/target/${{ matrix.target }}/release/lua-language-server ${{ github.workspace }}/artifact/bin
54+
python publish/workflow_copy_files.py . ${{ github.workspace }}/artifact
55+
- name: package-windows
56+
if: ${{ matrix.os == 'windows-latest' }}
57+
run: |
58+
New-Item -ItemType Directory -Path "${{ github.workspace }}/artifact"
59+
Copy-Item -Path ${{ github.workspace }}\target\${{ matrix.target }}\release\lua-language-server.exe -Destination ${{ github.workspace }}\artifact\bin
5360
python publish/workflow_copy_files.py . "${{ github.workspace }}/artifact"
61+
shell: pwsh
5462
- name: Upload
5563
uses: actions/upload-artifact@v3
5664
with:

publish/workflow_copy_files.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
directories = ['locale', 'bin', 'meta', 'script']
1212
files = ['main.lua', "changelog.md", "LICENSE"]
13+
binary_files = ['target/release/lua-language-server.exe', 'bin/luajit.exe']
1314

1415
if os.path.exists(args.target_dir):
1516
shutil.rmtree(args.target_dir)

0 commit comments

Comments
 (0)