Skip to content

Workflow files update #809

Workflow files update

Workflow files update #809

name: Vangers Linux Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: update repos
run: sudo apt-get update
- name: install libs
run: sudo apt-get install cmake libsdl2-dev libsdl2-net-dev libogg-dev libvorbis-dev libavcodec-dev libavformat-dev libavutil-dev
- name: clunk download lib
run: git clone --depth 1 https://github.com/stalkerg/clunk.git clunk
working-directory: /tmp
- name: clunk build and install
run: cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER=/usr/bin/gcc-9 -DCMAKE_CXX_COMPILER=/usr/bin/g++-9 . && make && sudo make install
working-directory: /tmp/clunk
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_C_COMPILER=/usr/bin/gcc-9 -DCMAKE_CXX_COMPILER=/usr/bin/g++-9 ..
- name: make
run: make
working-directory: build
- name: prepare release folder
run: |
mkdir -p vangers/bin
cp build/src/vangers vangers/bin/
cp build/server/vangers_server vangers/bin/
cp build/surmap/surmap vangers/bin/
- uses: actions/upload-artifact@v4
with:
name: Vangers-Release-Linux64
path: vangers