Skip to content

uh pitch pitch pitch PITCH #270

uh pitch pitch pitch PITCH

uh pitch pitch pitch PITCH #270

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: MacOS Build CI
# Controls when the workflow will run
on: [push, pull_request]
# 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"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
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.2.5
- name: Get last Action build
uses: actions/cache@v3
with:
# not caching the bin folder to prevent asset duplication and stuff like that
key: cache-build-mac
path: |
.haxelib/
export/release/macos/haxe/
export/release/macos/obj/
restore-keys: |
cache-build-mac
# Runs a set of commands using the runners shell
- name: script run line haha
run: |
mkdir "%HAXELIB_ROOT%"
haxelib setup "%HAXELIB_ROOT%"
haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib install hxcpp-debug-server 1.2.4
haxelib install flixel-tools
haxelib install flixel-addons 3.2.0
haxelib install flixel-ui
haxelib install hscript
haxelib git hxCodec https://github.com/polybiusproxy/hxCodec
haxelib git faxe https://github.com/uhrobots/faxe
haxelib install polymod
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit
haxelib git extension-webm https://github.com/KadeDev/extension-webm
haxelib run lime rebuild extension-webm mac
haxelib install actuate
haxelib list
- name: Compile
run: |
haxelib run lime build mac
- uses: actions/upload-artifact@v2
with:
name: MacOS Build
path: export/release/macos/bin
- name: Clear current Action Cache
uses: actions/github-script@v6
with:
script: |
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})
for (const cache of caches.data.actions_caches) {
if (cache.key == "cache-build-mac") {
console.log('Clearing ' + cache.key + '...')
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log("Cache cleared.")
}
}
- name: Caching new Action
uses: actions/cache@v3
with:
# caching again since for some reason it doesnt work with the first post cache shit
key: cache-build-mac
path: |
.haxelib/
export/release/macos/haxe/
export/release/macos/obj/
restore-keys: |
cache-build-mac