Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
Install and upload artifact
  • Loading branch information
pedrolcl authored Mar 7, 2024
1 parent 61e7b7e commit 235fc4d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: Linux Build and Test

on:
push:
branches: [ "master" ]
branches: [ "master", "devel" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "devel" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: ${{github.workspace}}/Sonivox_install

jobs:
build:
Expand All @@ -18,12 +19,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}

- name: Build
# Build your program with the given configuration
Expand All @@ -35,3 +36,14 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

- name: Install
run: cmake --install ${{github.workspace}}/build

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SonivoxV3
path: ${{env.INSTALL_LOCATION}}
retention-days: 90
overwrite: true

0 comments on commit 235fc4d

Please sign in to comment.