2019-12-12 13:23:57 -07:00
|
|
|
name: CMake Build (Ubuntu x86-64)
|
2019-12-11 08:29:51 -07:00
|
|
|
|
2020-03-21 16:35:43 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-12-11 08:29:51 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-12 13:23:57 -07:00
|
|
|
|
2020-06-08 12:20:56 -06:00
|
|
|
runs-on: ubuntu-20.04
|
2019-12-12 13:23:57 -07:00
|
|
|
|
2019-12-11 08:29:51 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install dependencies
|
2020-12-09 15:08:48 -07:00
|
|
|
run: |
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
sudo apt update
|
2023-04-28 11:19:58 -06:00
|
|
|
sudo apt install cmake extra-cmake-modules libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev qt5-default qtbase5-private-dev qtmultimedia5-dev libslirp0 libslirp-dev libarchive-dev zstd libzstd-dev --allow-downgrades
|
2019-12-11 08:29:51 -07:00
|
|
|
- name: Create build environment
|
|
|
|
run: mkdir ${{runner.workspace}}/build
|
|
|
|
- name: Configure
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2020-12-09 15:08:48 -07:00
|
|
|
run: cmake $GITHUB_WORKSPACE
|
2019-12-11 08:29:51 -07:00
|
|
|
- name: Make
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2019-12-13 10:42:39 -07:00
|
|
|
run: |
|
2020-12-09 15:08:48 -07:00
|
|
|
make -j$(nproc --all)
|
|
|
|
mkdir dist
|
|
|
|
cp melonDS dist
|
2019-12-12 20:06:57 -07:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-06-13 06:06:15 -06:00
|
|
|
name: melonDS-ubuntu-x86_64
|
2019-12-13 10:42:39 -07:00
|
|
|
path: ${{runner.workspace}}/build/dist
|