krdlab / setup-haxe

Set up a specific version of Haxe environment for your workflow.
MIT License
38 stars 9 forks source link

Add support for haxelib cache #30

Closed moioyoao closed 1 year ago

moioyoao commented 1 year ago

Added support for Haxelib cache when setting the path of a hxml file to cache-dependency-path.

Example use:

jobs:
  build_haxe:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: echo '-lib hxnodejs' > lib.hxml # For checking operation
      # - uses: krdlab/setup-haxe@v1
      - uses: moioyoao/setup-haxe@1aa14b4f09e049d4af130d6618616cc27f98daee
        with:
          haxe-version: 3.4.7
          cache-dependency-path: lib.hxml
      - run: haxelib install lib.hxml --always

The results of the CI workflow in the forked repository are shown below: