Skip to content

Commit

Permalink
Update build-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl authored Mar 9, 2024
1 parent b8e16af commit 626590b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
DRUMSTICKNAME: DrumstickV2
SONIVOXNAME: SonivoxV3
DRUMSTICK_LOCATION: ${{github.workspace}}/DrumstickV2

SONIVOX_LOCATION: ${{github.workspace}}/SonivoxV3

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
Expand All @@ -26,6 +28,16 @@ jobs:
with:
submodules: true

- uses: dawidd6/action-download-artifact@v3
with:
name: ${{env.SONIVOXNAME}}
github_token: ${{secrets.GH_PAT}}
repo: pedrolcl/sonivox
workflow: cmake.yml

- name: Extract downloaded files
run: tar xvf ${{env.SONIVOXNAME}}.tar

- uses: dawidd6/action-download-artifact@v3
with:
name: ${{env.DRUMSTICKNAME}}
Expand All @@ -47,7 +59,9 @@ jobs:
- 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}} -DCMAKE_PREFIX_PATH=${{env.DRUMSTICK_LOCATION}}
run: cmake -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_PREFIX_PATH="${{env.DRUMSTICK_LOCATION}};${{env.SONIVOX_LOCATION}}"

- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit 626590b

Please sign in to comment.