Update snapshot build to use Ubuntu 18.04 LTS
Ubuntu 16.04 would provide better distro compatibility, but we need SDL in version 2.0.5 or newer to enable resizable window support on Linux. Pretty soon Ubuntu 20.04 LTS will be released, so targetting previous LTS release should be enough.
This commit is contained in:
parent
3d694ca006
commit
4f607a3bcc
2 changed files with 8 additions and 4 deletions
9
.github/workflows/linux.yml
vendored
9
.github/workflows/linux.yml
vendored
|
@ -64,13 +64,13 @@ jobs:
|
|||
|
||||
build_linux_release_dynamic:
|
||||
name: Release build (dynamic)
|
||||
runs-on: ubuntu-16.04
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.event_name != 'pull_request' || contains('dreamer,kcgen,ant-222', github.actor) == false
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: sudo apt-get update
|
||||
- name: Install C++ compiler and libraries
|
||||
run: sudo apt-get install -y tree libpng16-dev librsvg2-bin $(./scripts/list-build-dependencies.sh -m apt -c gcc)
|
||||
run: sudo apt-get install -y tree libpng-dev librsvg2-bin $(./scripts/list-build-dependencies.sh -m apt -c gcc)
|
||||
- name: Prepare compiler cache
|
||||
id: prep-ccache
|
||||
shell: bash
|
||||
|
@ -109,7 +109,10 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
./autogen.sh
|
||||
./configure CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" LDFLAGS="$FLAGS $LINKFLAGS -flto=$(nproc)" --disable-screenshots
|
||||
./configure \
|
||||
CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" \
|
||||
LDFLAGS="$FLAGS $LINKFLAGS -flto=$(nproc)" \
|
||||
--enable-png-static
|
||||
make -j "$(nproc)"
|
||||
strip src/dosbox
|
||||
- name: Package
|
||||
|
|
|
@ -89,7 +89,7 @@ packages installed via your package manager.
|
|||
|
||||
sudo dnf install SDL2 SDL2_net opusfile
|
||||
|
||||
#### Debian, Ubuntu
|
||||
#### Debian (10 or newer), Ubuntu (18.04 LTS or newer)
|
||||
|
||||
sudo apt install libsdl2-2.0 libsdl2-net-2.0 libopusfile0
|
||||
|
||||
|
@ -97,6 +97,7 @@ packages installed via your package manager.
|
|||
|
||||
sudo pacman -S sdl2 sdl2_net opusfile
|
||||
|
||||
|
||||
### [Windows]
|
||||
|
||||
A dosbox.exe file in a snapshot package is not signed, therefore Windows 10
|
||||
|
|
Loading…
Add table
Reference in a new issue