Skip to content

Updated empty map

Updated empty map #384

name: package-ubuntu-dev
on:
push:
branches:
- 'dev**'
pull_request:
branches:
- 'dev**'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
haxe: [4.2.4]
fail-fast: true
runs-on: ubuntu-latest
steps:
# Get branch name
- name: getBranch
shell: bash
run: echo "::set-output name=v::${GITHUB_REF#refs/heads/}"
id: branch
# Checkout, install haxe and libs
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe }}
- run: haxe -version
# Install libs
- run: haxelib install uuid
- run: haxelib git castle https://github.com/ncannasse/castle
- run: haxelib git heaps https://github.com/deepnight/heaps.git
- run: haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs.git
- run: haxelib git electron https://github.com/tong/hxelectron.git
- run: haxelib git heaps-aseprite https://github.com/AustinEast/heaps-aseprite.git
# Install haxe API from same branch (if it exists)...
- name: Install Haxe API from same branch
id: installApiBranch
run: haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git ${{ steps.branch.outputs.v }} --always
continue-on-error: true
# ... or from master otherwise
- name: Install Haxe API from master
if: steps.installApiBranch.outcome == 'failure'
run: |
haxelib remove ldtk-haxe-api
haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git --always
# Install deepnightLibs
- run: haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git --always
- run: haxelib list
# Node/NPM commands
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: cd app && npm install
- run: cd app && npm run pack-linux-x86
# Upload
- uses: actions/upload-artifact@v2
with:
name: ubuntu-distribution
path: app/redist/LDtk**installer.AppImage