Skip to content

Commit edf6102

Browse files
committed
Initial commit
0 parents  commit edf6102

18 files changed

+1529
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Create release
2+
run-name: Create release
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version of the program to build. This will be used for the tag and release name."
9+
required: true
10+
11+
target:
12+
description: "Select target to build."
13+
required: true
14+
default: "SetTimerResolution"
15+
type: choice
16+
options:
17+
- "SetTimerResolution"
18+
- "MeasureSleep"
19+
20+
pre-release:
21+
description: "Pre-release"
22+
required: true
23+
default: false
24+
type: boolean
25+
26+
permissions:
27+
contents: write
28+
29+
jobs:
30+
build:
31+
runs-on: windows-latest
32+
33+
env:
34+
VCPKG_DEFAULT_TRIPLET: x64-windows
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
40+
- name: Set up MSVC environment
41+
uses: microsoft/setup-msbuild@v2
42+
43+
- name: Set up vcpkg
44+
run: |
45+
git clone https://github.com/Microsoft/vcpkg.git
46+
.\vcpkg\bootstrap-vcpkg.bat
47+
.\vcpkg\vcpkg.exe integrate install
48+
49+
- name: Install dependencies (vspkg.json)
50+
run: .\vcpkg\vcpkg.exe install
51+
52+
- name: Build executable
53+
run: MSBuild.exe .\TimerResolution.sln -p:Configuration=Release -p:Platform=x64 -t:${{ inputs.target }}
54+
55+
- name: Create release
56+
uses: ncipollo/release-action@v1
57+
with:
58+
tag: ${{ inputs.target }}-v${{ inputs.version }}
59+
name: ${{ inputs.target }} v${{ inputs.version }}
60+
prerelease: ${{ inputs.pre-release }}
61+
artifacts: ./x64/Release/${{ inputs.target }}.exe

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
# Folders
35+
vcpkg_installed
36+
x64
37+
*.vs
38+
.vscode
39+
/vcpkg

0 commit comments

Comments
 (0)