name: Compile on Linux on: pull_request: push: jobs: build: runs-on: ubuntu-latest steps: - name: Pulling the new commit uses: actions/checkout@v2 - name: Setting up Haxe uses: krdlab/setup-haxe@v1 with: haxe-version: 4.2.5 - name: Setting up Haxelib run: | mkdir ".haxelib" haxelib setup ".haxelib" - name: Installing libraries run: | ls haxe -cp ./update -D analyzer-optimize -main Update --interp - name: Building the game run: | haxelib run lime build linux - name: Artifact upload (entire build) uses: actions/upload-artifact@v2 with: name: Codename Engine path: export/release/linux/bin - name: Artifact upload (executable) uses: actions/upload-artifact@v2 with: name: Update-Linux path: export/release/linux/bin/CodenameEngine