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.
55 lines
1.4 KiB
55 lines
1.4 KiB
name: Linux_x86 |
|
|
|
on: |
|
push: |
|
branches: |
|
- master |
|
pull_request: |
|
types: [ opened, synchronize ] |
|
|
|
jobs: |
|
build: |
|
runs-on: ubuntu-18.04 |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v2 |
|
with: |
|
fetch-depth: 0 |
|
|
|
- name: Create Build Environment |
|
run: > |
|
sudo dpkg --add-architecture i386 && |
|
sudo apt update -y && |
|
sudo apt install -y cmake file g++-multilib git libfmt-dev:i386 libsdl2-dev:i386 libsodium-dev:i386 libpng-dev:i386 rpm wget smpq |
|
|
|
- name: Cache CMake build folder |
|
uses: actions/cache@v2 |
|
with: |
|
path: build |
|
key: linux-x86-cmake-${{ github.sha }} |
|
restore-keys: linux-x86-cmake- |
|
|
|
- name: Configure CMake |
|
shell: bash |
|
working-directory: ${{github.workspace}} |
|
run: cmake -S. -Bbuild -DNIGHTLY_BUILD=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_TOOLCHAIN_FILE=../CMake/32bit.cmake |
|
|
|
- name: Build |
|
working-directory: ${{github.workspace}} |
|
shell: bash |
|
run: cmake --build build -j $(nproc) --target package |
|
|
|
- name: Package |
|
run: Packaging/nix/LinuxReleasePackaging.sh && Packaging/nix/AppImage.sh |
|
|
|
- name: Upload-Package |
|
uses: actions/upload-artifact@v2 |
|
with: |
|
name: devilutionx_linux_x86.tar.xz |
|
path: devilutionx.tar.xz |
|
|
|
- name: Upload-AppImage |
|
uses: actions/upload-artifact@v2 |
|
with: |
|
name: devilutionx_linux_x86.appimage |
|
path: devilutionx.appimage
|
|
|