-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from arceuss/githubfuckflow
github workflow builds
- Loading branch information
Showing
3 changed files
with
167 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,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 | ||
|
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,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 |
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,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 |