2019-12-12 20:23:57 +00:00
|
|
|
name: CMake Build (Ubuntu x86-64)
|
2019-12-11 15:29:51 +00:00
|
|
|
|
2020-03-21 22:35:43 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-12-11 15:29:51 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
CMAKE_VERSION: 3.15.2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-12 20:23:57 +00:00
|
|
|
|
2019-12-11 15:29:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2019-12-12 20:23:57 +00:00
|
|
|
|
2019-12-11 15:29:51 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}
|
|
|
|
run: | # Fetch a new version of CMake, because the default is too old.
|
2019-12-13 17:42:39 +00:00
|
|
|
wget -nv https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \
|
|
|
|
&& tar -zxf cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz \
|
|
|
|
&& sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list \
|
|
|
|
&& sudo apt-get update \
|
|
|
|
&& sudo apt-get install gtk+-3.0 libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev
|
2019-12-11 15:29:51 +00:00
|
|
|
- name: Create build environment
|
|
|
|
run: mkdir ${{runner.workspace}}/build
|
|
|
|
- name: Configure
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
|
|
|
run: ${{runner.workspace}}/cmake-$CMAKE_VERSION-Linux-x86_64/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
|
|
- name: Make
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2019-12-13 17:42:39 +00:00
|
|
|
run: |
|
|
|
|
make -j$(nproc --all) \
|
|
|
|
&& mkdir dist \
|
|
|
|
&& cp {melonDS,romlist.bin} dist
|
2019-12-13 03:06:57 +00:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: melonDS
|
2019-12-13 17:42:39 +00:00
|
|
|
path: ${{runner.workspace}}/build/dist
|