mirror of
https://github.com/yquake2/rogue.git
synced 2025-02-20 19:12:04 +00:00
Add a Win64 workflow file.
This commit is contained in:
parent
5fc769f8cf
commit
abca9f7e82
1 changed files with 57 additions and 0 deletions
57
.github/workflows/win64.yml
vendored
Normal file
57
.github/workflows/win64.yml
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
name: Testbuild for Win64
|
||||||
|
run-name: testbuild_win64
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- edited
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
concurrency:
|
||||||
|
# Cancel concurrent workflows for the same PR or commit hash.
|
||||||
|
group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}}
|
||||||
|
cancel-in-progress: true
|
||||||
|
jobs:
|
||||||
|
build_mingw_x86_64:
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- { sys: mingw64, env: x86_64 }
|
||||||
|
steps:
|
||||||
|
- uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: ${{matrix.sys}}
|
||||||
|
update: true
|
||||||
|
install: >-
|
||||||
|
git
|
||||||
|
make
|
||||||
|
mingw-w64-${{matrix.env}}-gcc
|
||||||
|
mingw-w64-${{matrix.env}}-make
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
# Public runners come with 4 CPUs.
|
||||||
|
make -j4
|
||||||
|
- name: Create testbuild package
|
||||||
|
shell: msys2 {0}
|
||||||
|
run: |
|
||||||
|
# Create release directory tree
|
||||||
|
mkdir -p publish/quake2-rogue-win64-${{github.sha}}/misc/docs
|
||||||
|
# Copy release assets
|
||||||
|
cp -r release/* publish/quake2-rogue-win64-${{github.sha}}/
|
||||||
|
# Copy misc assets
|
||||||
|
cp -r stuff/mapfixes publish/quake2-rogue-win64-${{github.sha}}/misc
|
||||||
|
cp LICENSE publish/quake2-rogue-win64-${{github.sha}}/misc/docs/LICENSE.txt
|
||||||
|
cp README.md publish/quake2-rogue-win64-${{github.sha}}/misc/docs/README.txt
|
||||||
|
- name: Upload testbuild package
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: quake2-rogue-win64-${{github.sha}}
|
||||||
|
path: publish/
|
||||||
|
if-no-files-found: error
|
Loading…
Reference in a new issue