From 27ebf408495a422c3e8db07ff52cf908bd4deb93 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sun, 6 Jun 2021 22:15:36 +0300 Subject: [PATCH] Add github workflow and change the link and badge from travis to github actions (#174) --- .github/workflows/.github.yml | 27 +++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/.github.yml diff --git a/.github/workflows/.github.yml b/.github/workflows/.github.yml new file mode 100644 index 00000000..d3d87559 --- /dev/null +++ b/.github/workflows/.github.yml @@ -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 diff --git a/README.md b/README.md index fe9e883f..86c9c9c0 100644 --- a/README.md +++ b/README.md @@ -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.