Skip to content

Commit

Permalink
create workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
YoYo178 committed Mar 6, 2024
1 parent 8bffc8a commit 9d48cfb
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/FF_Linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: FF_Linux

on:
workflow_dispatch:

jobs:
build:
runs-on:
ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure dependencies
shell: bash
run: sudo apt install -y g++-9-multilib gcc-9-multilib

- name: Create project
run: cd mp/src;devtools/bin/vpc /ff +game /mksln Game_FF

- name: Build project
env:
CC: gcc-9
CXX: g++-9
run: cd mp/src;make -f Game_FF.mak server_ff

- name: Pack
shell: bash
run: tar cJfv Linux.tar.xz mp/game/FortressForever2013/bin

- name: Upload product
uses: actions/upload-artifact@v2
with:
name: FF_2013
path: Linux.tar.xz
32 changes: 32 additions & 0 deletions .github/workflows/FF_Windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: FF_Windows

on:
workflow_dispatch:

jobs:
build:
runs-on:
windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure dependencies
uses: ilammy/msvc-dev-cmd@v1

- name: Create project
run: cd mp/src;devtools/bin/vpc.exe /2013 /ff +game /mksln Game_FF.sln

- name: Build project
run: cd mp/src;devenv Game_FF.sln /Build Release

- name: Pack
shell: bash
run: tar cJfv Windows.tar.xz mp/game/FortressForever2013/bin

- name: Upload product
uses: actions/upload-artifact@v2
with:
name: FF_2013
path: Windows.tar.xz

0 comments on commit 9d48cfb

Please sign in to comment.