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
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-12 20:23:57 +00:00
|
|
|
|
2020-06-08 18:20:56 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2019-12-12 20:23:57 +00:00
|
|
|
|
2019-12-11 15:29:51 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install dependencies
|
2020-12-09 22:08:48 +00:00
|
|
|
run: |
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
sudo apt update
|
2022-10-02 14:47:57 +00:00
|
|
|
sudo apt install cmake libcurl4-gnutls-dev libpcap0.8-dev libsdl2-dev qt5-default qtmultimedia5-dev libslirp0 libslirp-dev libarchive-dev libepoxy-dev --allow-downgrades
|
2019-12-11 15:29:51 +00:00
|
|
|
- name: Create build environment
|
|
|
|
run: mkdir ${{runner.workspace}}/build
|
|
|
|
- name: Configure
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2020-12-09 22:08:48 +00:00
|
|
|
run: cmake $GITHUB_WORKSPACE
|
2019-12-11 15:29:51 +00:00
|
|
|
- name: Make
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
2019-12-13 17:42:39 +00:00
|
|
|
run: |
|
2020-12-09 22:08:48 +00:00
|
|
|
make -j$(nproc --all)
|
|
|
|
mkdir dist
|
|
|
|
cp melonDS dist
|
2019-12-13 03:06:57 +00:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-06-13 12:06:15 +00:00
|
|
|
name: melonDS-ubuntu-x86_64
|
2019-12-13 17:42:39 +00:00
|
|
|
path: ${{runner.workspace}}/build/dist
|