Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 29, 2023
1 parent 424b2ea commit 0fbb2bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CMake Build
on:
push:
branches: ["main"]
jobs:
build:
name: Visual Studio 2022
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: TheMrMilchmann/setup-msvc-dev@v2
with:
arch: x86
toolset: 16.0
export-path-to-vcvarsall: VCVARS
- name: CMake Setup
uses: lukka/get-cmake@latest
# - name: CMake Build
# uses: lukka/run-cmake@v10
# with:
# cmakeListsTxtPath: "${{ github.workspace }}\\CMakeLists.txt"
# configurePreset: "x86-release"
- name: Run vcvarsall
run: "$ENV:VCVARS"
- name: CMake Build
run: cmake --preset x86-release
- name: CMake Install
run: cmake --install
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: dist-without-markdown
path: |
out/install/x86-release/bin/*.dll
out/install/x86-release/zBassMusic.vdf
4 changes: 4 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "zbassmusic"
}

0 comments on commit 0fbb2bc

Please sign in to comment.