aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-ubuntu.yml
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-01-28 21:35:58 +0100
committerGitHub <noreply@github.com>2020-01-28 21:35:58 +0100
commit8b9eef352c9ea00f1dc8fbe37ecab79cd8630b3c (patch)
tree098a14c9a6de9ac2abcc88d6ca00d66998208a22 /.github/workflows/build-ubuntu.yml
parent12732aa51b25a3a952b2ef554fda18168111cdd0 (diff)
parent67903b7974dc6d44cda10c1c74eadebd1b4bbd2e (diff)
Merge pull request #554 from rzumer/github-actions
Add GitHub workflow configurations for continuous integration with Linux and Windows
Diffstat (limited to '.github/workflows/build-ubuntu.yml')
-rw-r--r--.github/workflows/build-ubuntu.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml
new file mode 100644
index 0000000..fed0f3e
--- /dev/null
+++ b/.github/workflows/build-ubuntu.yml
@@ -0,0 +1,41 @@
+name: CMake Build (Ubuntu x86-64)
+
+on: [push, pull_request]
+
+env:
+ BUILD_TYPE: Release
+ CMAKE_VERSION: 3.15.2
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ 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.
+ 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
+ - 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
+ run: |
+ make -j$(nproc --all) \
+ && mkdir dist \
+ && cp {melonDS,romlist.bin} dist
+ - uses: actions/upload-artifact@v1
+ with:
+ name: melonDS
+ path: ${{runner.workspace}}/build/dist