wings icon indicating copy to clipboard operation
wings copied to clipboard

Interest in making builds on Github using github actions

Open fire opened this issue 3 years ago • 7 comments

Is there any interest for me to make github actions builds for Windows and Ubuntu Linux?

fire avatar Jul 13 '22 13:07 fire

Please do

On Wed, Jul 13, 2022, 15:03 K. S. Ernest (iFire) Lee < @.***> wrote:

Is there any interest for me to make github actions builds for Windows and Ubuntu Linux?

— Reply to this email directly, view it on GitHub https://github.com/dgud/wings/issues/499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAATYKJQOHIKJXPI7YKZZCTVT25BBANCNFSM53OU3NNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dgud avatar Jul 13 '22 19:07 dgud

  • [ ] Get on a linux computer
  • [ ] Manually generate steps
  • [ ] Run a github action to publish to a tag

fire avatar Jul 20 '22 05:07 fire

  • The Wings source files. http://www.wings3d.com
  • Erlang/OTP 22.2 or later. http://www.erlang.org -- Preferably compiled against wxWidgets-3.1.3 or later.
  • git or CL library at http://github.com/tonyrog/cl
  • rebar3 (needed for building CL).
  • A GNU compatible "make" program. Included with most unix-like systems; otherwise get it from http://www.gnu.org.
  • bunzip2 for unpacking the Wings source tar file. Included with most unix-like systems; otherwise get it from http://sources.redhat.com/bzip2.
  • OpenGL header files and libraries.
  • OpenCL header files (optional)

fire avatar Jul 20 '22 05:07 fire

  • Run "make"
  • build Erlang/OTP according to the instructions in the README file. git clone https://github.com/erlang/rebar3 cd rebar make cd $ERL_LIBS git clone https://github.com/tonyrog/cl.git cd cl rebar3 compile git clone https://github.com/dgud/wings.git cd wings make erl -pa <MY_WINGS_PATH>/ebin -run wings_start start_halt erl -pa /home/bjorng/wings-1.0/ebin -run wings_start start_halt
    #!/bin/sh
    exec erl -pa /home/bjorng/wings-1.0/ebin -run wings_start start_halt ${1+"$@"}

Building an installation package for MacOS X

To build everything and pack it into a DMG file, you'll need:

  • Xcode 4.6.3 or later on Mountain Lion. $ pwd /Users/bjorng/wings_releases/wings-1.0 $ make macosx When everything is done, there should be a file named like wings-1.0-macosx.dmg in the current directory. $ export WINGS_CODE_SIGN=yes $ make macosx You will be prompted for your login keychain password if the login keychain is locked.

Building an installation package for Linux (and other Unix systems)

  • makeself.sh for building the installation package (a self-extractable bzip2 archive). http://megastep.org/makeself /Users/bjorng/wings_releases/wings-1.0 $ make unix $ wings-1.0-linux.bzip2.run

fire avatar Jul 20 '22 05:07 fire

See also https://github.com/dgud/wings/blob/master/.travis.yml

fire avatar Jul 20 '22 05:07 fire

The travis scripts should be a good start for linux, they used to work.

For windows wsl is needed so maybe take a look at github actions scripts in erlang/otp works

dgud avatar Jul 20 '22 07:07 dgud

Pushed Win32 and Linux builds.

No MacOS builds yet.

dgud avatar Jun 19 '23 06:06 dgud