2022-05-19 01:51:26 -07:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/Build.yml'
|
2022-06-02 01:31:03 -07:00
|
|
|
- 'src/**.cc'
|
2022-05-19 01:51:26 -07:00
|
|
|
- 'src/**.h'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/Build.yml'
|
2022-06-02 01:31:03 -07:00
|
|
|
- 'src/**.cc'
|
2022-05-19 01:51:26 -07:00
|
|
|
- 'src/**.h'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2022-06-02 01:31:03 -07:00
|
|
|
build-windows:
|
2022-05-19 01:51:26 -07:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Prepare
|
2022-06-02 01:31:03 -07:00
|
|
|
run: cmake -B build/x86-windows -A Win32
|
2022-05-19 01:51:26 -07:00
|
|
|
|
|
|
|
- name: Release build
|
2022-06-02 01:31:03 -07:00
|
|
|
run: cmake --build build/x86-windows --config Release
|
2022-05-19 01:51:26 -07:00
|
|
|
|
|
|
|
- name: Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-06-02 01:31:03 -07:00
|
|
|
name: x86-windows-fallout2-ce
|
2022-05-19 01:51:26 -07:00
|
|
|
path: |
|
2022-06-02 01:31:03 -07:00
|
|
|
build/x86-windows/Release/fallout2-ce.exe
|
|
|
|
retention-days: 7
|
|
|
|
|
|
|
|
build-linux32:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install g++-multilib libsdl2-dev:i386 zlib1g-dev:i386
|
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
run: cmake -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -B build/x86-linux
|
|
|
|
|
|
|
|
- name: Release build
|
|
|
|
run: cmake --build build/x86-linux --config Release
|
|
|
|
|
|
|
|
- name: Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: x86-linux-fallout2-ce
|
|
|
|
path: |
|
|
|
|
build/x86-linux/fallout2-ce
|
2022-05-19 01:51:26 -07:00
|
|
|
retention-days: 7
|