Skip to content

Commit

Permalink
Merge pull request #27 from arceuss/githubfuckflow
Browse files Browse the repository at this point in the history
github workflow builds
  • Loading branch information
Yoshubs authored Sep 17, 2021
2 parents 8d3e7f9 + c96dce4 commit 3ddcf59
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/buildlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This is a basic workflow to help you get started with Actions

name: BuildLinux

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildLinux:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: wow its building how
run: |
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib haxe -y
mkdir "%HAXELIB_ROOT%"
haxelib setup "%HAXELIB_ROOT%"
haxelib install hxcpp
haxelib install lime 7.9.0
haxelib install openfl
haxelib install flixel
haxelib install flixel-ui
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-addons
haxelib install hscript
haxelib install newgrounds
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib list
haxelib run lime build linux
- uses: actions/upload-artifact@v2
with:
name: linuxBuild
path: export/release/linux/bin

55 changes: 55 additions & 0 deletions .github/workflows/buildmac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: BuildMac

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildMac:
runs-on: macos-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
haxelib install lime 7.9.0
haxelib install openfl
haxelib install flixel
haxelib install flixel-ui
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-addons
haxelib install hscript
haxelib install newgrounds
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib list
- name: Create APIStuff
run: echo "package;class APIStuff{public static var API:String = '';public static var EncKey:String = '';}" > source/APIStuff.hx
- name: Compile
run: haxelib run lime build mac
- name: Publish Artifact
uses: actions/upload-artifact@v2
with:
name: macBuild
path: export/release/macos/bin
55 changes: 55 additions & 0 deletions .github/workflows/buildwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: BuildWin

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildWindows:
runs-on: windows-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.1.5
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib install lime 7.8.0
haxelib install openfl
haxelib install flixel 4.8.1
haxelib install flixel-ui
haxelib git flixel-addons https://github.com/HaxeFlixel/flixel-addons
haxelib install hscript
haxelib install newgrounds
haxelib run lime setup
haxelib install flixel-tools
haxelib run flixel-tools setup
haxelib git polymod https://github.com/larsiusprime/polymod.git
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib list
shell: cmd
- name: Create APIStuff
run: echo "package;class APIStuff{public static var API:String = '';public static var EncKey:String = '';}" > source/APIStuff.hx
- name: Compile
run: haxelib run lime build windows
- name: Publish Artifact
uses: actions/upload-artifact@v2
with:
name: windowsBuild
path: export/release/windows/bin

0 comments on commit 3ddcf59

Please sign in to comment.