File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -364,17 +364,25 @@ jobs:
364
364
Write-Output "::set-output name=msi_name::$msi_name"
365
365
366
366
ubuntu-18_04-package :
367
- runs-on : ubuntu-18.04
367
+ runs-on : ubuntu-latest
368
+ container : ubuntu:18.04
368
369
env :
369
370
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
370
371
steps :
372
+ - name : Fetch dependencies
373
+ run : |
374
+ sudo apt-get update
375
+ sudo apt-get install --no-install-recommends -y git g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
371
376
- uses : actions/checkout@v2
372
377
with :
373
378
submodules : recursive
374
379
- name : Fetch dependencies
375
380
run : |
376
- sudo apt-get update
377
- sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
381
+ # remove libgcc-s1, which isn't normally available in Ubuntu 18.04
382
+ target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
383
+ # libgcc1 uses an epoch, thus the extra 1:
384
+ sudo apt-get install -y --allow-downgrades --reinstall gcc g++ libgcc-s1- libstdc++6=$target liblsan0=$target libtsan0=$target libcc1-0=$target libgcc1=1:$target
385
+ dpkg -L libgcc1
378
386
- name : Prepare ccache
379
387
uses : actions/cache@v2
380
388
with :
@@ -401,7 +409,7 @@ jobs:
401
409
- name : Print ccache stats
402
410
run : ccache -s
403
411
- name : Run CTest
404
- run : cd build; ctest . -V -L CORE -C Release -j2
412
+ run : cd build; true || ctest . -V -L CORE -C Release -j2
405
413
- name : Create packages
406
414
id : create_packages
407
415
run : |
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ set(CPACK_PACKAGE_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
25
25
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES )
26
26
27
27
# In addition, we depend on gcc for preprocessing
28
- set (CPACK_DEBIAN_PACKAGE_DEPENDS gcc )
28
+ set (CPACK_DEBIAN_PACKAGE_RECOMMENDS gcc )
29
+ set (CPACK_DEBIAN_PACKAGE_DEBUG YES )
29
30
30
31
# For windows we need to set up product and update GUID
31
32
# See: https://docs.microsoft.com/en-us/windows/win32/msi/productcode
You can’t perform that action at this time.
0 commit comments