Add github workflow and change the link and badge from travis to github actions (#174)

This commit is contained in:
Roman Chistokhodov 2021-06-06 22:15:36 +03:00 committed by GitHub
parent 06dd8a63cd
commit 27ebf40849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

27
.github/workflows/.github.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler: [gcc, clang]
include:
- compiler: gcc
cpp-compiler: g++
- compiler: clang
cpp-compiler: clang++
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.cpp-compiler }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get -y install gcc-multilib g++-multilib libgl1-mesa-dev
- name: Build client and server on ${{ matrix.os }} with ${{ matrix.compiler }}
run: |
cmake -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" && cmake --build build --target all

View File

@ -1,4 +1,4 @@
# Half-Life SDK for Xash3D [![Build Status](https://travis-ci.org/FWGS/hlsdk-xash3d.svg)](https://travis-ci.org/FWGS/hlsdk-xash3d) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/FWGS/hlsdk-xash3d?svg=true)](https://ci.appveyor.com/project/a1batross/hlsdk-xash3d)
# Half-Life SDK for Xash3D [![Build Status](https://github.com/FWGS/hlsdk-xash3d/actions/workflows/.github.yml/badge.svg?branch=master)](https://github.com/FWGS/hlsdk-xash3d/actions/workflows/.github.yml) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/FWGS/hlsdk-xash3d?svg=true)](https://ci.appveyor.com/project/a1batross/hlsdk-xash3d)
Half-Life SDK for Xash3D & GoldSource with some fixes.