4 changed files with 138 additions and 6 deletions
@ -0,0 +1,46 @@
|
||||
name: Linux_x86 |
||||
|
||||
on: [push, pull_request] |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
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 libsdl2-ttf-dev:i386 libsodium-dev:i386 rpm wget |
||||
|
||||
- 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: Upload-Executable |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: devilutionx_linux_x86 |
||||
path: build/devilutionx |
||||
|
||||
- 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 |
||||
@ -0,0 +1,46 @@
|
||||
name: Linux_x86_64 |
||||
|
||||
on: [push, pull_request] |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: Create Build Environment |
||||
run: sudo apt-get install -y cmake file g++ git libfmt-dev libsdl2-dev libsdl2-ttf-dev libsodium-dev rpm wget |
||||
|
||||
- name: Configure CMake |
||||
shell: bash |
||||
working-directory: ${{github.workspace}} |
||||
run: cmake -S. -Bbuild .. -DNIGHTLY_BUILD=ON -DCMAKE_INSTALL_PREFIX=/usr |
||||
|
||||
- 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 |
||||
path: build/devilutionx |
||||
|
||||
- name: Package |
||||
run: Packaging/nix/LinuxReleasePackaging.sh && Packaging/nix/AppImage.sh |
||||
|
||||
- name: Upload-Package |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: devilutionx_linux_x86_64.tar.xz |
||||
path: devilutionx.tar.xz |
||||
|
||||
- name: Upload-AppImage |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: devilutionx_linux_x86_64.appimage |
||||
path: devilutionx.appimage |
||||
@ -0,0 +1,40 @@
|
||||
name: Linux_x86_64_SDL1 |
||||
|
||||
on: [push, pull_request] |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: Create Build Environment |
||||
run: sudo apt-get 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 |
||||
Loading…
Reference in new issue