-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Pull Request Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
steps: | ||
- name: Check out project files | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Download and install FBXSDK files | ||
run: | | ||
apt update ; apt -y install gcc g++ make curl wget libxml2-dev zlib1g-dev | ||
# download and build libiconv | ||
mkdir -p /build/libiconv | ||
cd /build/libiconv | ||
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz ; tar -xvf libiconv-1.11.tar.gz | ||
cd /build/libiconv/libiconv-1.11 | ||
./configure ; make ; make install ; make check ; make install | ||
mkdir -p /build/fbxsdk | ||
wget https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_linux.tar.gz | ||
wget https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_linux.tar.gz | ||
mkdir -p /usr/share/fbxsdk/2020.3.4 | ||
printf 'yes\nn\n' | /build/fbxsdk/fbx202034_fbxsdk_linux /usr/share/fbxsdk/2020.3.4 | ||
- name: Build and run tests | ||
run: | | ||
./all_build.sh |