Skip to content

Commit 0a7e3c9

Browse files
committed
Add a Win64 workflow file.
1 parent 693e82f commit 0a7e3c9

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/win64.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Testbuild for Win64
2+
run-name: testbuild_win64
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
types:
9+
- edited
10+
- opened
11+
- synchronize
12+
concurrency:
13+
# Cancel concurrent workflows for the same PR or commit hash.
14+
group: ${{github.workflow}}-${{github.event_name == 'pull_request' && github.head_ref || github.sha}}
15+
cancel-in-progress: true
16+
jobs:
17+
build_mingw_x86_64:
18+
runs-on: windows-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- { sys: mingw64, env: x86_64 }
24+
steps:
25+
- uses: msys2/setup-msys2@v2
26+
with:
27+
msystem: ${{matrix.sys}}
28+
update: true
29+
install: >-
30+
git
31+
make
32+
mingw-w64-${{matrix.env}}-gcc
33+
mingw-w64-${{matrix.env}}-make
34+
- name: Check out repository code
35+
uses: actions/checkout@v4
36+
- name: Build
37+
shell: msys2 {0}
38+
run: |
39+
# Public runners come with 4 CPUs.
40+
make -j4
41+
- name: Create testbuild package
42+
shell: msys2 {0}
43+
run: |
44+
# Create release directory tree
45+
mkdir -p publish/quake2-ctf-win64-${{github.sha}}/misc/docs
46+
# Copy release assets
47+
cp -r release/* publish/quake2-ctf-win64-${{github.sha}}/
48+
# Copy misc assets
49+
cp LICENSE publish/quake2-ctf-win64-${{github.sha}}/misc/docs/LICENSE.txt
50+
cp README.md publish/quake2-ctf-win64-${{github.sha}}/misc/docs/README.txt
51+
- name: Upload testbuild package
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: quake2-ctf-win64-${{github.sha}}
55+
path: publish/
56+
if-no-files-found: error

0 commit comments

Comments
 (0)