@@ -305,30 +305,32 @@ jobs:
305
305
submodules : recursive
306
306
- name : Set up cache
307
307
uses : actions/cache@v2
308
+ id : mpb-cache
308
309
with :
309
310
path : |
310
311
~/mod-workdir
311
312
key : modduo-static-v${{ env.CACHE_VERSION }}
312
313
- name : Set up dependencies
313
314
run : |
314
315
sudo apt-get update -qq
315
- sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin
316
+ sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin liblo-dev
316
317
- name : Bootstrap toolchain
318
+ if : steps.mpb-cache.outputs.cache-hit != 'true'
317
319
run : |
318
320
git clone --depth=1 https://github.com/moddevices/mod-plugin-builder.git deps/mod-plugin-builder
319
321
sed -i "s/CT_LOG_PROGRESS_BAR=y/CT_LOG_PROGRESS_BAR=n/" deps/mod-plugin-builder/toolchain/*.config
320
322
$(pwd)/deps/mod-plugin-builder/bootstrap.sh modduo-static minimal && $(pwd)/deps/mod-plugin-builder/.clean-install.sh modduo-static
321
- # - name: Build for modduo
322
- # run: |
323
- # CFLAGS="-ffat-lto-objects" CXXFLAGS="-ffat-lto-objects" make modduo HAVE_LIBLO =true HEADLESS =true WITH_LTO=true -j $(nproc)
324
- # - name: Pack binaries
325
- # run: |
326
- # tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-modduo-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
327
- # - uses: actions/upload-artifact@v2
328
- # with:
329
- # name: ${{ github.event.repository.name }}-modduo-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
330
- # path: |
331
- # *.tar.gz
323
+ - name : Build for modduo
324
+ run : |
325
+ make modduo HEADLESS =true MOD_BUILD =true WITH_LTO=true -j $(nproc)
326
+ - name : Pack binaries
327
+ run : |
328
+ tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-modduo-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
329
+ - uses : actions/upload-artifact@v2
330
+ with :
331
+ name : ${{ github.event.repository.name }}-modduo-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
332
+ path : |
333
+ *.tar.gz
332
334
333
335
modduox :
334
336
runs-on : ubuntu-20.04
@@ -338,30 +340,32 @@ jobs:
338
340
submodules : recursive
339
341
- name : Set up cache
340
342
uses : actions/cache@v2
343
+ id : mpb-cache
341
344
with :
342
345
path : |
343
346
~/mod-workdir
344
347
key : modduox-v${{ env.CACHE_VERSION }}
345
348
- name : Set up dependencies
346
349
run : |
347
350
sudo apt-get update -qq
348
- sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin
351
+ sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin liblo-dev
349
352
- name : Bootstrap toolchain
353
+ if : steps.mpb-cache.outputs.cache-hit != 'true'
350
354
run : |
351
355
git clone --depth=1 https://github.com/moddevices/mod-plugin-builder.git deps/mod-plugin-builder
352
356
sed -i "s/CT_LOG_PROGRESS_BAR=y/CT_LOG_PROGRESS_BAR=n/" deps/mod-plugin-builder/toolchain/*.config
353
357
$(pwd)/deps/mod-plugin-builder/bootstrap.sh modduox-static minimal && $(pwd)/deps/mod-plugin-builder/.clean-install.sh modduox-static
354
- # - name: Build for modduox
355
- # run: |
356
- # CFLAGS="-ffat-lto-objects" CXXFLAGS="-ffat-lto-objects" make modduox HAVE_LIBLO =true HEADLESS =true WITH_LTO=true -j $(nproc)
357
- # - name: Pack binaries
358
- # run: |
359
- # tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-modduox-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
360
- # - uses: actions/upload-artifact@v2
361
- # with:
362
- # name: ${{ github.event.repository.name }}-modduox-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
363
- # path: |
364
- # *.tar.gz
358
+ - name : Build for modduox
359
+ run : |
360
+ make modduox HEADLESS =true MOD_BUILD =true WITH_LTO=true -j $(nproc)
361
+ - name : Pack binaries
362
+ run : |
363
+ tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-modduox-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
364
+ - uses : actions/upload-artifact@v2
365
+ with :
366
+ name : ${{ github.event.repository.name }}-modduox-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
367
+ path : |
368
+ *.tar.gz
365
369
366
370
moddwarf :
367
371
runs-on : ubuntu-20.04
@@ -371,30 +375,32 @@ jobs:
371
375
submodules : recursive
372
376
- name : Set up cache
373
377
uses : actions/cache@v2
378
+ id : mpb-cache
374
379
with :
375
380
path : |
376
381
~/mod-workdir
377
382
key : moddwarf-v${{ env.CACHE_VERSION }}
378
383
- name : Set up dependencies
379
384
run : |
380
385
sudo apt-get update -qq
381
- sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin
386
+ sudo apt-get install -yqq acl bc curl cvs git mercurial rsync subversion wget bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip automake binutils build-essential cpio libtool libncurses-dev pkg-config python libtool-bin liblo-dev
382
387
- name : Bootstrap toolchain
388
+ if : steps.mpb-cache.outputs.cache-hit != 'true'
383
389
run : |
384
390
git clone --depth=1 https://github.com/moddevices/mod-plugin-builder.git deps/mod-plugin-builder
385
391
sed -i "s/CT_LOG_PROGRESS_BAR=y/CT_LOG_PROGRESS_BAR=n/" deps/mod-plugin-builder/toolchain/*.config
386
392
$(pwd)/deps/mod-plugin-builder/bootstrap.sh moddwarf minimal && $(pwd)/deps/mod-plugin-builder/.clean-install.sh moddwarf
387
- # - name: Build for moddwarf
388
- # run: |
389
- # CFLAGS="-ffat-lto-objects" CXXFLAGS="-ffat-lto-objects" make moddwarf HAVE_LIBLO =true HEADLESS =true WITH_LTO=true -j $(nproc)
390
- # - name: Pack binaries
391
- # run: |
392
- # tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-moddwarf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
393
- # - uses: actions/upload-artifact@v2
394
- # with:
395
- # name: ${{ github.event.repository.name }}-moddwarf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
396
- # path: |
397
- # *.tar.gz
393
+ - name : Build for moddwarf
394
+ run : |
395
+ make moddwarf HEADLESS =true MOD_BUILD =true WITH_LTO=true -j $(nproc)
396
+ - name : Pack binaries
397
+ run : |
398
+ tar -c -h --hard-dereference -z -f ${{ github.event.repository.name }}-moddwarf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}.tar.gz -C bin $(ls bin | grep lv2)
399
+ - uses : actions/upload-artifact@v2
400
+ with :
401
+ name : ${{ github.event.repository.name }}-moddwarf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
402
+ path : |
403
+ *.tar.gz
398
404
399
405
win32 :
400
406
runs-on : ubuntu-20.04
0 commit comments