Skip to content

Commit 32e32d8

Browse files
committed
修改git action兼容m1
1 parent c0ff3a2 commit 32e32d8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [windows-latest, ubuntu-latest, macos-latest]
11+
include:
12+
- { os: ubuntu-latest, target: linux, platform: linux-x64}
13+
- { os: macos-latest, target: darwin, platform: darwin-x64}
14+
- { os: macos-latest, target: darwin, platform: darwin-arm64}
15+
- { os: windows-latest, target: windows, platform: win32-x64}
1216
steps:
1317
- uses: actions/checkout@v2
1418
with:
@@ -20,7 +24,7 @@ jobs:
2024
cmake ..
2125
cmake --build . --config Release
2226
ctest -V -C --output-on-failure Release
23-
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/${{ runner.os }}/
27+
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/${{ matrix.platform }}/
2428
2529
- name: Upload
2630
uses: actions/upload-artifact@v2

CodeFormatServer/src/Session/StandardIOSession.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ bool StandardIO::HasError()
5757

5858
void StandardIO::Write(std::string_view content)
5959
{
60-
// _out->write_some();
6160
asio::write(*_out, asio::buffer(content.data(), content.size()));
6261
}
6362

0 commit comments

Comments
 (0)