Skip to content

Commit

Permalink
CI: docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 25, 2024
1 parent 1848062 commit bd69a76
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Linux

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: ./src/scripts/build.sh
50 changes: 50 additions & 0 deletions src/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash
#
# Friction - https://friction.graphics
#
# Copyright (c) Friction contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

set -e -x

CWD=`pwd`
MKJOBS=${MKJOBS:-2}
COMMIT=`git rev-parse --short=8 HEAD`
BRANCH=`git rev-parse --abbrev-ref HEAD`

ASDK=20240401
SDK=20240609
URL=https://github.com/friction2d/friction-sdk/releases/download/${SDK}
APPIMAGE_TAR=friction-appimage-tools-${ASDK}.tar.xz
SDK_TAR=friction-vfxplatform-CY2021-sdk-${SDK}.tar.bz2

mkdir distfiles
cd distfiles

if [ ! -d "linux" ]; then
if [ ! -f "${APPIMAGE_TAR}" ]; then
wget ${URL}/${APPIMAGE_TAR}
fi
tar xvf ${APPIMAGE_TAR}
fi

if [ ! -f "${SDK_TAR}" ]; then
wget ${URL}/${SDK_TAR}
fi

cd ${CWD}

MKJOBS=${MKJOBS} REL=0 BRANCH=${BRANCH} COMMIT=${COMMIT} ./src/scripts/run_vfxplatform.sh

0 comments on commit bd69a76

Please sign in to comment.