Skip to content

webci

webci #52

Workflow file for this run

name: main
on: [ push, pull_request, workflow_dispatch ]
jobs:
native:
strategy:
matrix:
os: [ ubuntu-latest ]
profile: [ "Debug", "Release" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: "Install Dependencies"
run: |
sudo apt-get -qq update
sudo apt-get -qq install --no-install-recommends \
gettext \
libasound2-dev \
libavcodec-dev libavformat-dev libavutil-dev \
libbullet-dev \
libgnutls28-dev \
libode-dev \
libopenxr-dev \
libsdl2-dev \
libvorbis-dev \
libvulkan-dev \
libwayland-dev \
libxcursor-dev \
libxkbcommon-dev \
libxrandr-dev \
ninja-build \
qtbase5-dev
- name: "Configure: ${{ matrix.profile }}"
run: |
cmake -B build_${{ matrix.profile }} -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.profile }}
- name: "Build: ${{ matrix.profile }}"
run: |
cmake --build build_${{ matrix.profile }}
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: mymindstorm/setup-emsdk@v13
with:
version: 3.1.51
actions-cache-folder: 'emsdk-cache'
- name: Verify emscripten
run: emcc -v
- name: Build
run: |
cd engine
# Broken
sed -r -i '/define Q3(CLIENT|SERVER)/d' common/config_fteqw.h
export SVNREVISION="-DSVNREVISION=${{ github.sha }}"
export WEB_MEMORY="536870912"
make -e web-rel
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: fteqw-web
path: |
engine/release/ftewebgl.js
engine/release/ftewebgl.html
engine/release/ftewebgl.wasm