mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-10 06:41:45 +00:00
Add github action based windows build
For more info look to: * https://github.com/marketplace/actions/setup-msys2
This commit is contained in:
parent
ba37a2b3ba
commit
a7c5cca923
2 changed files with 46 additions and 1 deletions
45
.github/workflows/windows.yml
vendored
Normal file
45
.github/workflows/windows.yml
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
name: Build windows application
|
||||
run-name: windows
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { sys: mingw32, env: i686 }
|
||||
steps:
|
||||
- uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: ${{matrix.sys}}
|
||||
update: true
|
||||
install: >-
|
||||
git
|
||||
make
|
||||
zip
|
||||
mingw-w64-${{matrix.env}}-curl
|
||||
mingw-w64-${{matrix.env}}-ffmpeg
|
||||
mingw-w64-${{matrix.env}}-gcc
|
||||
mingw-w64-${{matrix.env}}-make
|
||||
mingw-w64-${{matrix.env}}-openal
|
||||
mingw-w64-${{matrix.env}}-SDL2
|
||||
mingw-w64-${{matrix.env}}-vulkan-headers
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Release code
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
make
|
||||
mkdir ref_vk-${{matrix.env}}-${{github.ref_name}}
|
||||
cp -rv LICENSE README.md ref_vk-${{matrix.env}}-${{github.ref_name}}
|
||||
cp -rv release/* ref_vk-${{matrix.env}}-${{github.ref_name}}
|
||||
zip -9r ref_vk-${{matrix.env}}-${{github.ref_name}}.zip ref_vk-${{matrix.env}}-${{github.ref_name}}
|
||||
- name: Upload Release Asset
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
ref_vk-${{matrix.env}}-${{github.ref_name}}.zip
|
|
@ -32,7 +32,7 @@
|
|||
#include "shared_safe.h"
|
||||
#include "crc.h"
|
||||
|
||||
#define VKVERSION "1.0.6"
|
||||
#define VKVERSION "1.0.7"
|
||||
|
||||
#ifndef YQ2OSTYPE
|
||||
#error YQ2OSTYPE should be defined by the build system
|
||||
|
|
Loading…
Reference in a new issue