You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.3 KiB

name: Linux_x86_64_SDL1
on: [push, pull_request]
jobs:
prebuild:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
build:
needs: prebuild
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create Build Environment
run: >
sudo apt update &&
sudo apt install -y cmake file g++ git libfmt-dev libsdl-dev libsdl-ttf2.0-dev libsodium-dev rpm
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}
run: cmake -S. -Bbuild .. -DNIGHTLY_BUILD=ON -DUSE_SDL1=ON
- name: Build
working-directory: ${{github.workspace}}
shell: bash
run: cmake --build build -j $(nproc) --target package
- name: Upload-Executable
uses: actions/upload-artifact@v2
with:
name: devilutionx_linux_x86_64_SDL1
path: build/devilutionx
- name: Package
run: Packaging/nix/LinuxReleasePackaging.sh
- name: Upload-Package
uses: actions/upload-artifact@v2
with:
name: devilutionx_linux_x86_64_SDL1.tar.xz
path: devilutionx.tar.xz