Update CI script
This commit is contained in:
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
@@ -38,51 +38,52 @@ jobs:
|
|||||||
haxelib dev hxcpp hxcpp
|
haxelib dev hxcpp hxcpp
|
||||||
cd hxcpp/tools/hxcpp
|
cd hxcpp/tools/hxcpp
|
||||||
haxe compile.hxml
|
haxe compile.hxml
|
||||||
|
|
||||||
haxelib install format --quiet
|
haxelib install format --quiet
|
||||||
haxelib install hxp --quiet
|
haxelib install hxp --quiet
|
||||||
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet
|
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet
|
||||||
|
|
||||||
- name: [Windows] Enable HXCPP compile cache
|
- name: Windows | Enable HXCPP compile cache
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $GITHUB_ENV
|
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: [Linux/macOS] Enable HXCPP compile cache
|
- name: Linux/macOS | Enable HXCPP compile cache
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: [Linux] Install Android NDK
|
- name: Linux | Install Android NDK
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
uses: nttld/setup-ndk@v1
|
uses: nttld/setup-ndk@v1
|
||||||
id: setup-ndk
|
id: setup-ndk
|
||||||
with:
|
with:
|
||||||
ndk-version: r15c
|
ndk-version: r15c
|
||||||
|
|
||||||
- name: [Windows] Rebuild Lime tools
|
- name: Windows | Rebuild Lime tools
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
haxelib dev lime $Env:GITHUB_WORKSPACE
|
haxelib dev lime $Env:GITHUB_WORKSPACE
|
||||||
haxelib run lime rebuild tools -nocolor -verbose -nocffi
|
haxelib run lime rebuild tools -nocolor -verbose -nocffi
|
||||||
|
|
||||||
- name: [Linux/macOS] Rebuild Lime tools
|
- name: Linux/macOS | Rebuild Lime tools
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
haxelib dev lime $GITHUB_WORKSPACE
|
haxelib dev lime $GITHUB_WORKSPACE
|
||||||
haxelib run lime rebuild tools -nocolor -verbose -nocffi
|
haxelib run lime rebuild tools -nocolor -verbose -nocffi
|
||||||
|
|
||||||
- name: [Windows] Install "lime" command alias
|
- name: Windows | Install "lime" command alias
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime setup -alias -y -nocffi
|
haxelib run lime setup -alias -y -nocffi
|
||||||
|
|
||||||
- name: [Linux/macOS] Install "lime" command alias
|
- name: Linux/macOS | Install "lime" command alias
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime setup -alias -y -nocffi
|
haxelib run lime setup -alias -y -nocffi
|
||||||
lime || alias lime="haxelib run lime"
|
lime || alias lime="haxelib run lime"
|
||||||
|
|
||||||
- name: [Linux] Configure Android support
|
- name: Linux | Configure Android support
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: |
|
run: |
|
||||||
lime config ANDROID_SDK $ANDROID_HOME
|
lime config ANDROID_SDK $ANDROID_HOME
|
||||||
|
|||||||
Reference in New Issue
Block a user