Skip to content

Commit

Permalink
Fixes build validation and adds vcpkg auto download to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenix3 committed Nov 4, 2022
1 parent 2aecab6 commit 404ce30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: soh-windows
path: build-cmake/**/src/**/*.lib
path: build-cmake/src/**/*.lib
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,5 +337,6 @@ MigrationBackup/
!libultraship/Lib/**
libultraship/DebugObj/*
build/
build-cmake/
libultraship.a
.DS_Store
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# libultraship

## Building
## Building on Linux/Mac
```
cmake -H. -Bbuild
cmake --build build
Expand All @@ -9,7 +9,12 @@ cmake --build build
## Generating a Visual Studio `.sln` on Windows
```
# Visual Studio 2022
& 'C:\Program Files\CMake\bin\cmake' -S . -B "build/x64" -G "Visual Studio 17 2022" -T v142 -A x64
& 'C:\Program Files\CMake\bin\cmake' -DUSE_AUTO_VCPKG=true -S . -B "build/x64" -G "Visual Studio 17 2022" -T v142 -A x64
# Visual Studio 2019
& 'C:\Program Files\CMake\bin\cmake' -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64
& 'C:\Program Files\CMake\bin\cmake' -DUSE_AUTO_VCPKG=true -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64
```

## To build on Windows
```
& 'C:\Program Files\CMake\bin\cmake' --build .\build\x64
```

0 comments on commit 404ce30

Please sign in to comment.