Skip to content

New shape named Oblong #84

New shape named Oblong

New shape named Oblong #84

Workflow file for this run

on:
push:
pull_request:
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-build
cancel-in-progress: true
jobs:
build:
name: Build Wings3D (ubuntu)
runs-on: ubuntu-latest
steps:
# Fetch the commits and hopefully get nice version via git describe
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: erlef/setup-beam@v1
with:
otp-version: '26.0'
rebar3-version: '3.20'
- name: Install OpenCL deps
run: sudo apt-get update && sudo apt-get install -y ocl-icd-opencl-dev
- name: Wings build
run:
MAKEFLAGS=-j$(($(nproc) + 2)) make
- name: Dialyze
run: make dialyze
- name: Build installer
run: make unix
- uses: actions/upload-artifact@v3
with:
name: wings_ubuntu
path: |
wings-*.bzip2.run
build-windows:
defaults:
run:
shell: wsl-bash {0}
name: Build Wings3D (Windows)
runs-on: windows-2022
steps:
- uses: Vampire/setup-wsl@v2
with:
distribution: Ubuntu-22.04
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download win32 Erlang
shell: cmd
run: |
choco install -y --version "26.0.0" erlang
## NSIS is already pre-installed
## choco install --verbose -y nsis
- name: Prepare WSL for compilation
run: |
# Need rebar3 and erlang in linux
# Since I don't know how to invoke an cmd with visual studio env
# to invoke rebar3 from windows
#
mkdir bin
wget -q -O bin/rebar3 https://github.com/erlang/rebar3/releases/download/3.22.0/rebar3
chmod +x bin/rebar3
#
# We need erlang (for rebar3), make and unzip
#
sudo apt-get update
sudo apt-get install -y erlang-dev erlang-ssh erlang-inets unzip build-essential
#
# wings need opencl libs and headers
#
mkdir OpenCL
cd OpenCL
wget https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/files/1406216/lightOCLSDK.zip
unzip lightOCLSDK.zip
mv lib/x86_64 lib/x64
- name: Build wings
run: |
echo PWD: `pwd`
export WINGS_DIR_WSL=`pwd`
export WINGS_DIR_WIN=`wslpath -m $WINGS_DIR_WSL`
export OPENCL_DIR=$WINGS_DIR_WIN/OpenCL
export MAKEFLAGS=-j$(($(nproc) + 2))
echo MAKEFLAGS=$MAKEFLAGS
#
# Setup paths to find cl.exe and msw LIBS and INCLUDES
#
cd /mnt/c
eval `cmd.exe /c "$WINGS_DIR_WIN/win32/SetupWSLcross.bat" x64`
cd $WINGS_DIR_WSL
#
export PATH=$PATH:"/mnt/c/Program Files/Erlang OTP/bin:$WINGS_DIR_WSL/bin"
make
export WINGS_VCREDIST_IGNORE_VSN=1
make win32
- uses: actions/upload-artifact@v3
with:
name: wings_win32_x64_installer
path: |
wings-*.exe