File tree Expand file tree Collapse file tree 6 files changed +15
-41
lines changed Expand file tree Collapse file tree 6 files changed +15
-41
lines changed Original file line number Diff line number Diff line change 14
14
env :
15
15
BUILD_TYPE : RelWithDebInfo
16
16
INSTALL_LOCATION : ${{github.workspace}}/SonivoxV3
17
- TEMP : ${{github.workspace}}/temp
18
17
19
18
steps :
20
19
- uses : actions/checkout@v4
@@ -27,16 +26,11 @@ jobs:
27
26
cache-key : cached.soundfont.dls
28
27
enable-cross-os-archive : true
29
28
30
- - name : ' Link to TEMP directory: ${{env.TEMP}}'
31
- run : |
32
- mkdir -p $TEMP
33
- ln -s soundfont.dls $TEMP/soundfont.dls
34
-
35
29
- name : FreeBSD test
36
30
id : test
37
31
uses : vmactions/freebsd-vm@v1
38
32
with :
39
- envs : ' BUILD_TYPE INSTALL_LOCATION TEMP '
33
+ envs : ' BUILD_TYPE INSTALL_LOCATION'
40
34
usesh : true
41
35
prepare : |
42
36
pkg install -y \
46
40
googletest
47
41
run : |
48
42
set -e -x
49
- cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DNEW_HOST_WRAPPER=NO
43
+ cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DNEW_HOST_WRAPPER=NO -DSOUNDFONT=soundfont.dls
50
44
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
51
45
cd ${{github.workspace}}/build
52
46
ctest -C ${{env.BUILD_TYPE}} --verbose
Original file line number Diff line number Diff line change 10
10
env :
11
11
BUILD_TYPE : RelWithDebInfo
12
12
INSTALL_LOCATION : ${{github.workspace}}/SonivoxV3
13
- TEMP : ${{github.workspace}}/temp
14
13
15
14
jobs :
16
15
build :
44
43
cache-key : cached.soundfont.dls
45
44
enable-cross-os-archive : true
46
45
47
- - name : ' ${{ matrix.icon }} Link to the TEMP directory: ${{env.TEMP}}'
48
- run : |
49
- mkdir -p $TEMP
50
- ln -s soundfont.dls $TEMP/soundfont.dls
51
-
52
46
- name : ' ${{ matrix.icon }} Configure CMake with USE_44KHZ=${{ matrix.USE_44KHZ }} and USE_16BITS_SAMPLES=${{ matrix.USE_16BITS_SAMPLES }}'
53
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DUSE_44KHZ=${{ matrix.USE_44KHZ }} -DUSE_16BITS_SAMPLES=${{ matrix.USE_16BITS_SAMPLES }}
47
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DUSE_44KHZ=${{ matrix.USE_44KHZ }} -DUSE_16BITS_SAMPLES=${{ matrix.USE_16BITS_SAMPLES }} -DSOUNDFONT=soundfont.dls
54
48
55
49
- name : ' ${{ matrix.icon }} Build'
56
50
run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change 10
10
env :
11
11
BUILD_TYPE : RelWithDebInfo
12
12
INSTALL_LOCATION : ${{github.workspace}}/SonivoxV3
13
- TEMP : ${{github.workspace}}/temp
14
13
15
14
jobs :
16
15
build :
28
27
cache-key : cached.soundfont.dls
29
28
enable-cross-os-archive : true
30
29
31
- - name : ' Link to TEMP directory: ${{env.TEMP}}'
32
- run : |
33
- mkdir -p $TEMP
34
- ln -s soundfont.dls $TEMP/soundfont.dls
35
-
36
30
- name : Configure CMake
37
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}
31
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DSOUNDFONT=soundfont.dls
38
32
39
33
- name : Build
40
34
run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change 10
10
env :
11
11
BUILD_TYPE : RelWithDebInfo
12
12
INSTALL_LOCATION : ${{github.workspace}}/SonivoxV3
13
- TEMP : ${{github.workspace}}/temp
14
13
15
14
jobs :
16
15
build :
39
38
cache-key : cached.soundfont.dls
40
39
enable-cross-os-archive : true
41
40
42
- - name : ' ${{ matrix.icon }} Link to TEMP directory: ${{env.TEMP}}'
43
- run : |
44
- mkdir ${{env.TEMP}}
45
- mklink /D ${{env.TEMP}}/soundfont.dls soundfont.dls
46
-
47
41
- name : ' ${{ matrix.icon }} Configure CMake'
48
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -G Ninja
42
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -G Ninja -DSOUNDFONT=soundfont.dls
49
43
50
44
- name : ' ${{ matrix.icon }} Build'
51
45
run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change 53
53
cache-key : cached.soundfont.dls
54
54
enable-cross-os-archive : true
55
55
56
- - name : ' ${{ matrix.icon }} Link to TEMP directory: ${{env.TEMP}}'
57
- run : |
58
- ln -s soundfont.dls $TEMP/soundfont.dls
59
-
60
56
- name : ' ${{ matrix.icon }} Configure CMake'
61
- run : cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -G Ninja
57
+ run : cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -G Ninja -DSOUNDFONT=soundfont.dls
62
58
63
59
- name : ' ${{ matrix.icon }} Build'
64
60
run : cmake --build build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change @@ -339,15 +339,17 @@ if (BUILD_TESTING)
339
339
)
340
340
endif ()
341
341
342
- if (DEFINED ENV{TEMP} )
343
- set (TEMPDIR "$ENV{TEMP} " )
344
- elseif (DEFINED ENV{XDG_RUNTIME_DIR} )
345
- set (TEMPDIR "$ENV{XDG_RUNTIME_DIR} " )
346
- else ()
347
- message (FATAL_ERROR "Cannot find a temporary directory. Define the TEMP environment variable." )
342
+ if (NOT SOUNDFONT )
343
+ if (DEFINED ENV{TEMP} )
344
+ set (TEMPDIR "$ENV{TEMP} " )
345
+ elseif (DEFINED ENV{XDG_RUNTIME_DIR} )
346
+ set (TEMPDIR "$ENV{XDG_RUNTIME_DIR} " )
347
+ else ()
348
+ message (FATAL_ERROR "Cannot find a temporary directory. Define the TEMP environment variable." )
349
+ endif ()
350
+ set (SOUNDFONT "${TEMPDIR} /soundfont.dls" )
348
351
endif ()
349
352
350
- set (SOUNDFONT "${TEMPDIR} /soundfont.dls" )
351
353
if (NOT EXISTS ${SOUNDFONT} )
352
354
message (STATUS "Downloading DLS file for testing to ${SOUNDFONT} " )
353
355
file (DOWNLOAD "http://www.ronimusic.com/sf2/Airfont_340.dls" ${SOUNDFONT} )
You can’t perform that action at this time.
0 commit comments