-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* win32: add basic things Signed-off-by: R4SAS <r4sas@i2pmail.org> * win32: update CMakeLists Signed-off-by: R4SAS <r4sas@i2pmail.org> * win32: add daemon code Signed-off-by: R4SAS <r4sas@i2pmail.org> * misc: add editorconfig, little changes in CMakeLists Signed-off-by: R4SAS <r4sas@i2pmail.org> * win32: support and compat changes Signed-off-by: R4SAS <r4sas@i2pmail.org> * compat: push prebuilt libraries for windows Signed-off-by: R4SAS <r4sas@i2pmail.org> * win32: init Windows Sockets at start, support Windows paths Signed-off-by: R4SAS <r4sas@i2pmail.org> * win32: work as unicode app Signed-off-by: R4SAS <r4sas@i2pmail.org> * compat: fix typo Signed-off-by: R4SAS <r4sas@i2pmail.org> Signed-off-by: R4SAS <r4sas@i2pmail.org>
- Loading branch information
Showing
86 changed files
with
6,922 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
# Unix style files | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{h,cpp}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.rc] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{md,markdown}] | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build on Windows | ||
|
||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
|
||
jobs: | ||
build: | ||
name: Building using ${{ matrix.arch }} toolchain | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: [ | ||
{ msystem: UCRT64, arch: ucrt-x86_64, arch_short: x64-ucrt }, | ||
{ msystem: MINGW64, arch: x86_64, arch_short: x64 }, | ||
] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup MSYS2 | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.msystem }} | ||
install: base-devel mingw-w64-${{ matrix.arch }}-cmake mingw-w64-${{ matrix.arch }}-gcc mingw-w64-${{ matrix.arch }}-boost mingw-w64-${{ matrix.arch }}-openssl | ||
update: true | ||
- name: Build application | ||
run: | | ||
cd build | ||
cmake -G "MSYS Makefiles" -DMIMETIC_LIBRARY=../lib/compat-win/${{ matrix.arch_short }}/lib/libmimetic.a -DMIMETIC_INCLUDE_DIR=../lib/compat-win/include -DWITH_STATIC=ON . | ||
make -j$(nproc) | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pboted-${{ matrix.arch_short }} | ||
path: build/pboted.exe | ||
- name: Upload debug symbols | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pboted-${{ matrix.arch_short }}-debug | ||
path: build/pboted.exe.debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.