Skip to content

Commit

Permalink
snapkey.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cafali authored Aug 19, 2024
1 parent 52bfd42 commit a221c64
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/snapkey.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install MinGW
run: choco install mingw

- name: Compile resource file
run: windres resources.rc -o resources.o

- name: Add MinGW to Path
run: echo "C:\Program Files\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding ascii -Append

- name: Compile Command
run: g++ -o SnapKey SnapKey.cpp resources.o -mwindows -std=c++11 -static

- name: Run executable (optional)
run: .\SnapKey.exe

0 comments on commit a221c64

Please sign in to comment.