-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
424b2ea
commit a16153e
Showing
3 changed files
with
92 additions
and
1 deletion.
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,85 @@ | ||
name: CMake Build | ||
on: | ||
push: | ||
branches: ["main"] | ||
tags: | ||
- 'v*' | ||
permissions: write-all | ||
jobs: | ||
build: | ||
name: Build Visual Studio 2022 | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: TheMrMilchmann/setup-msvc-dev@v2 | ||
with: | ||
arch: x86 | ||
toolset: 14.36.32532 | ||
export-path-to-vcvarsall: VCVARSALL | ||
- name: CMake Setup | ||
uses: lukka/get-cmake@latest | ||
- name: CMake Configure | ||
run: 'cmake --preset x86-release' | ||
- name: Ninja Build | ||
run: ninja -C out/build/x86-release -j 20 | ||
- name: CMake Install | ||
run: cmake --install out/build/x86-release --prefix out/install/x86-release | ||
- name: Archive DLL | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dll-release | ||
path: out/install/x86-release/bin/*.dll | ||
- name: Archive VDF | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vdf-release | ||
path: out/install/x86-release/*.vdf | ||
release: | ||
name: Release tag | ||
runs-on: windows-2022 | ||
needs: | ||
- build | ||
if: github.ref_type == 'tag' | ||
steps: | ||
- name: Download DLL | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dll-release | ||
path: out/install/x86-release/bin/ | ||
- name: Download VDF | ||
uses: actions/download-artifact@master | ||
with: | ||
name: vdf-release | ||
path: out/install/x86-release/ | ||
- name: Zip dll-release | ||
run: Compress-Archive out/install/x86-release/bin/* dll-release.zip | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
release_name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release ZIP | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: dll-release.zip | ||
asset_name: zBassMusic.zip | ||
asset_content_type: application/zip | ||
- name: Upload Release VDF | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: out/install/x86-release/zBassMusic.vdf | ||
asset_name: zBassMusic.vdf | ||
asset_content_type: application/octet-stream |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[submodule "dependencies/union-api"] | ||
path = dependencies/union-api | ||
url = [email protected]:union-framework/union-api.git | ||
url = https://gitlab.com/union-framework/union-api.git | ||
[submodule ".\\dependencies\\union-api"] | ||
url = https://gitlab.com/union-framework/union-api.git |
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,4 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", | ||
"name": "zbassmusic" | ||
} |