gh_actions: add test build
This commit is contained in:
parent
0670ce59c4
commit
8c4231bf5e
|
@ -124,6 +124,55 @@ jobs:
|
|||
asset_path: Windows x32 (Debug).zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
build_windows_test:
|
||||
name: Windows x32 (Test)
|
||||
needs: nightly_release
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: msys2 {0}
|
||||
|
||||
steps:
|
||||
- name: Install Windows MSYS2 dependencies
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
update: true
|
||||
install: msys2-devel base-devel binutils mingw-w64-i686-toolchain mingw-w64-i686-nasm zip wget
|
||||
msystem: MINGW32
|
||||
|
||||
- name: Downgrade pthread
|
||||
run: |
|
||||
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
|
||||
wget https://github.com/barbudreadmon/msys2-package-archives/raw/main/mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
|
||||
pacman -U --noconfirm mingw-w64-i686-winpthreads-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz mingw-w64-i686-libwinpthread-git-6.0.0.5203.9afaf1c2-1-any.pkg.tar.xz
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build FBNeo
|
||||
run: |
|
||||
make -j$(nproc) mingw SKIPDEPEND=1
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Windows x32 (Test)
|
||||
path: |
|
||||
fbneod.exe
|
||||
|
||||
- name: Build release asset
|
||||
run: |
|
||||
zip --junk-paths "Windows x32 (Test).zip" fbneod.exe src/license.txt fbahelpfilesrc/fbneo.chm whatsnew.html
|
||||
|
||||
- name: Upload release asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.nightly_release.outputs.upload_url }}
|
||||
asset_name: Windows x32 (Test).zip
|
||||
asset_path: Windows x32 (Test).zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
build_linux_sdl2:
|
||||
name: Linux SDL 2
|
||||
needs: nightly_release
|
||||
|
|
Loading…
Reference in New Issue