Skip to content

Rearrange library setup and haxelib installation #15

Rearrange library setup and haxelib installation

Rearrange library setup and haxelib installation #15

Workflow file for this run

# This is a basic workflow to help you get started with Actions

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 65, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
name: Build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ official ]
pull_request:
branches: [ official ]
# 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:
WindowsBuild:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4.1.6
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
# Runs a set of commands using the runners shell
- name: Install required haxelibs
run: |
haxelib setup C:/haxelib
haxelib install format --quiet
haxelib install hxp --quiet
haxelib install hxcpp --quiet
haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet
haxelib run lime setup --quiet
haxelib install peote-view --quiet
haxelib install input2action --quiet
haxelib install customtitlebar --quiet
shell: cmd
- name: Check version tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}}"
- name: Publish artifact
uses: actions/upload-artifact@v4.3.3
with:
name: 'FV-Windows'
path: bin/windows/bin
LinuxBuild:
# The type of runner that the job will run on
runs-on: ubuntu-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@v4.1.6
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
# Runs a set of commands using the runners
# fucking hidden dependencies at the start of `run`
- name: Linux library setup
- run: |
sudo apt-get install libc6-dev-i386
export LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch)
export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
export CPLUS_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
sudo apt-get install g++-multilib
sudo apt install libx11-dev
sudo apt install libxrandr-dev
sudo apt-get install libxinerama-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libasound2-dev
- name: Install required haxelibs
run: |
haxelib setup ~/haxelib
haxelib install format --quiet
haxelib install hxp --quiet
haxelib install hxcpp > /dev/null --quiet
haxelib git lime https://github.com/SomeGuyWhoLovesCoding/lime.git --quiet
haxelib run lime setup --quiet
haxelib install peote-view --quiet
haxelib install input2action --quiet
haxelib install customtitlebar --quiet
- name: Check version tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: |
haxelib run lime build linux --app-version="4.0.0-${{ github.run_id}}"
- name: Publish artifact
uses: actions/upload-artifact@v4.3.3
with:
name: 'FV-Linux'
path: bin/linux/bin