-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit edf6102
Showing
18 changed files
with
1,529 additions
and
0 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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,7 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,61 @@ | ||
name: Create release | ||
run-name: Create release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version of the program to build. This will be used for the tag and release name." | ||
required: true | ||
|
||
target: | ||
description: "Select target to build." | ||
required: true | ||
default: "SetTimerResolution" | ||
type: choice | ||
options: | ||
- "SetTimerResolution" | ||
- "MeasureSleep" | ||
|
||
pre-release: | ||
description: "Pre-release" | ||
required: true | ||
default: false | ||
type: boolean | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
env: | ||
VCPKG_DEFAULT_TRIPLET: x64-windows | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up MSVC environment | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Set up vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
.\vcpkg\bootstrap-vcpkg.bat | ||
.\vcpkg\vcpkg.exe integrate install | ||
- name: Install dependencies (vspkg.json) | ||
run: .\vcpkg\vcpkg.exe install | ||
|
||
- name: Build executable | ||
run: MSBuild.exe .\TimerResolution.sln -p:Configuration=Release -p:Platform=x64 -t:${{ inputs.target }} | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ inputs.target }}-v${{ inputs.version }} | ||
name: ${{ inputs.target }} v${{ inputs.version }} | ||
prerelease: ${{ inputs.pre-release }} | ||
artifacts: ./x64/Release/${{ inputs.target }}.exe |
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,39 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Folders | ||
vcpkg_installed | ||
x64 | ||
*.vs | ||
.vscode | ||
/vcpkg |
Oops, something went wrong.