diff --git a/.github/workflows/FF_Linux.yml b/.github/workflows/FF_Linux.yml new file mode 100644 index 00000000..d2837a95 --- /dev/null +++ b/.github/workflows/FF_Linux.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/FF_Windows.yml b/.github/workflows/FF_Windows.yml new file mode 100644 index 00000000..029b59fb --- /dev/null +++ b/.github/workflows/FF_Windows.yml @@ -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 \ No newline at end of file