mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-12 08:41:34 -10:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
name: Linux x86
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
paths-ignore:
|
|
- '*.md'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Create Build Environment
|
|
run: >
|
|
sudo dpkg --add-architecture i386 &&
|
|
sudo apt-get update -y &&
|
|
sudo apt-get install -y cmake file g++-multilib git libfmt-dev:i386 libsdl2-dev:i386 libsodium-dev:i386 libpng-dev:i386 libbz2-dev:i386 rpm wget smpq
|
|
|
|
- name: Cache CMake build folder
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: build
|
|
key: ${{ github.workflow }}-v1-${{ github.sha }}
|
|
restore-keys: ${{ github.workflow }}-v1-
|
|
|
|
- name: Configure CMake
|
|
shell: bash
|
|
working-directory: ${{github.workspace}}
|
|
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCPACK=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_TOOLCHAIN_FILE=../CMake/platforms/linux_i386.toolchain.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
|
|
if: ${{ !env.ACT }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: devilutionx_linux_x86.tar.xz
|
|
path: devilutionx.tar.xz
|
|
|
|
- name: Upload-AppImage
|
|
if: ${{ !env.ACT }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: devilutionx_linux_x86.appimage
|
|
path: devilutionx.appimage
|