melonDS/.github/workflows/build-ubuntu.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

name: CMake Build (Ubuntu x86-64)
2020-03-21 16:35:43 -06:00
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
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
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
- 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
- name: Make
working-directory: ${{runner.workspace}}/build
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:
name: melonDS-ubuntu-x86_64
path: ${{runner.workspace}}/build/dist