Skip to content

setup haxelib

setup haxelib #14

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: produce
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: setup haxe
run: mkdir tools
- run: wget https://github.com/HaxeFoundation/haxe/releases/download/4.3.2/haxe-4.3.2-linux64.tar.gz -O ./tools/haxe.tar.gz
- run: tar xzvf ./tools/haxe.tar.gz -C ./tools
- run: mv ./tools/haxe_* ./tools/haxe
- run: sudo apt-get install neko
- run: echo "haxe is in $(cd $1; pwd)/tools/haxe"
- run: chmod +x ./haxe.sh
- run: ls -l
- run: sudo ./haxe.sh haxelib setup
- run: sudo ./haxe.sh haxelib install build.hxml
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn
- run: yarn run build:io-worker --if-present
- run: sudo ./haxe.sh haxe build.hxml
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: bin # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: bin/**
# The desired behavior if no files are found using the provided path.
retention-days: 60 # optional