Update ci workflow
This commit is contained in:
parent
f6647f3092
commit
28cfac4d3a
|
@ -4,13 +4,13 @@ on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/Build.yml'
|
- '.github/workflows/Build.yml'
|
||||||
- 'src/**.c'
|
- 'src/**.cc'
|
||||||
- 'src/**.h'
|
- 'src/**.h'
|
||||||
- '**/CMakeLists.txt'
|
- '**/CMakeLists.txt'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/Build.yml'
|
- '.github/workflows/Build.yml'
|
||||||
- 'src/**.c'
|
- 'src/**.cc'
|
||||||
- 'src/**.h'
|
- 'src/**.h'
|
||||||
- '**/CMakeLists.txt'
|
- '**/CMakeLists.txt'
|
||||||
|
|
||||||
|
@ -28,21 +28,21 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: cmake -B Build -A Win32
|
run: cmake -B build/x86-windows -A Win32
|
||||||
|
|
||||||
- name: Release build
|
- name: Release build
|
||||||
run: cmake --build Build --config Release
|
run: cmake --build build/x86-windows --config Release
|
||||||
|
|
||||||
- name: Artifact
|
- name: Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: fallout2-ce
|
name: x86-windows-fallout2-ce
|
||||||
path: |
|
path: |
|
||||||
Build/*/fallout2-ce.exe
|
build/x86-windows/fallout2-ce.exe
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
build-linux32:
|
build-linux32:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
|
@ -55,7 +55,15 @@ jobs:
|
||||||
sudo apt install g++-multilib libsdl2-dev:i386 zlib1g-dev:i386
|
sudo apt install g++-multilib libsdl2-dev:i386 zlib1g-dev:i386
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: cmake -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -B build
|
run: cmake -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -B build/x86-linux
|
||||||
|
|
||||||
- name: Release build
|
- name: Release build
|
||||||
run: cmake --build build --config Release
|
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
|
||||||
|
retention-days: 7
|
||||||
|
|
Loading…
Reference in New Issue