forked from kcat/dsoal
-
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.
Restore original workflow to fix merge conflict
- Loading branch information
1 parent
d6aa9c2
commit b67636d
Showing
1 changed file
with
44 additions
and
0 deletions.
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,44 @@ | ||
name: CMake Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
arch: [Win32, x64] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
|
||
- name: Configure CMake | ||
# Configure CMake in the 'build' subdirectory. | ||
run: cmake -B ${{github.workspace}}/build -A ${{matrix.arch}} | ||
|
||
- name: Build | ||
# Build the library with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Create Archive | ||
working-directory: ${{github.workspace}}/build | ||
# Create package defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/module/CPack.html for more detail | ||
run: cpack | ||
|
||
- name: Upload Archive | ||
# Upload package as an artifact of this workflow. | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dsoal-${{matrix.arch}} | ||
path: ${{github.workspace}}/build/packages/* |