Skip to content

Commit

Permalink
Try add windows build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpyLionnn committed Feb 8, 2024
1 parent 8f696b5 commit 68b4dfc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@ on:
pull_request:
branches: [ "master" ]

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Debug

permissions:
contents: read

jobs:
build:
build-linux:

runs-on: ubuntu-latest

Expand All @@ -23,3 +35,26 @@ jobs:
run: make
- name: Running tests
run: bin/Debug/Tests/Tests
build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- uses: abel0b/[email protected]
with:
version: "5.0.0-beta2"

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

# - name: Restore NuGet packages
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: premake
run: premake5 vs2022
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# packet-master
a serialization and deserialization library made in c

This is has been a learning experience. It can serialize uint8_t and bool to their smallest representable way.
This is has been a learning experience. It can serialize uint8_t uint16_t, and bool to their smallest representable way.

for bool 1 bit
for uint8_t 8 bits unless specified otherwise
for uint16_t 9 or 17 bits unless specified otherwise 1 bit for the byte count stored
## How is serialization done?
* boolean value is 1 bit
* uint8_t 8 bits unless specified otherwise
* uint16_t can be stored as 1 or 2 bytes depending on the value and the byte count is stored as 1 bit
planned to serialize and deserialize uint32_t

0 comments on commit 68b4dfc

Please sign in to comment.