Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
valleyofdoom committed Jun 27, 2024
0 parents commit edf6102
Show file tree
Hide file tree
Showing 18 changed files with 1,529 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
7 changes: 7 additions & 0 deletions .github/dependabot.yml
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"
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
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
39 changes: 39 additions & 0 deletions .gitignore
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
Loading

0 comments on commit edf6102

Please sign in to comment.