Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Oct 31, 2024
1 parent f226339 commit d410321
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,18 @@ jobs:
run: |
cargo install cross
cross build --release --target ${{ matrix.target }} --features no_format -p luals
- name: package
- name: package-uninx
if: ${{ matrix.os != 'windows-latest' }}
run: |
cp ${{ github.workspace }}/target/${{ matrix.target }}/release/lua-language-server ${{ github.workspace }}/artifact/bin
python publish/workflow_copy_files.py . ${{ github.workspace }}/artifact
- name: package-windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
New-Item -ItemType Directory -Path "${{ github.workspace }}/artifact"
Copy-Item -Path ${{ github.workspace }}\target\${{ matrix.target }}\release\lua-language-server.exe -Destination ${{ github.workspace }}\artifact\bin
python publish/workflow_copy_files.py . "${{ github.workspace }}/artifact"
shell: pwsh
- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions publish/workflow_copy_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

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

if os.path.exists(args.target_dir):
shutil.rmtree(args.target_dir)
Expand Down

0 comments on commit d410321

Please sign in to comment.