actions: simplify Neko and HashLink samples jobs
This commit is contained in:
65
.github/workflows/main.yml
vendored
65
.github/workflows/main.yml
vendored
@@ -552,50 +552,21 @@ jobs:
|
|||||||
|
|
||||||
hashlink-samples:
|
hashlink-samples:
|
||||||
needs: package-haxelib
|
needs: package-haxelib
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
matrix:
|
|
||||||
os: [ubuntu-20.04
|
|
||||||
, macos-11, windows-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: krdlab/setup-haxe@v1
|
- uses: krdlab/setup-haxe@v1
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.2.5
|
haxe-version: 4.2.5
|
||||||
|
|
||||||
- name: Set HAXEPATH (Windows)
|
- name: Set HAXEPATH
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HAXEPATH=$Env:HAXE_STD_PATH\.." >> $Env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Set HAXEPATH (macOS/Linux)
|
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
|
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install system dependencies (Linux)
|
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
|
|
||||||
|
|
||||||
- name: Install Haxe dependencies
|
- name: Install Haxe dependencies
|
||||||
run: |
|
run: |
|
||||||
haxelib install hxcpp 4.2.1 --quiet
|
|
||||||
haxelib install format --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: Enable HXCPP compile cache (Windows)
|
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $Env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Enable HXCPP compile cache (macOS/Linux)
|
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: lime-haxelib
|
name: lime-haxelib
|
||||||
@@ -809,49 +780,21 @@ jobs:
|
|||||||
|
|
||||||
neko-samples:
|
neko-samples:
|
||||||
needs: package-haxelib
|
needs: package-haxelib
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
matrix:
|
|
||||||
os: [ubuntu-20.04, macos-11, windows-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: krdlab/setup-haxe@v1
|
- uses: krdlab/setup-haxe@v1
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.2.5
|
haxe-version: 4.2.5
|
||||||
|
|
||||||
- name: Set HAXEPATH (Windows)
|
- name: Set HAXEPATH
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HAXEPATH=$Env:HAXE_STD_PATH\.." >> $Env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Set HAXEPATH (macOS/Linux)
|
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
|
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install system dependencies (Linux)
|
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
|
|
||||||
|
|
||||||
- name: Install Haxe dependencies
|
- name: Install Haxe dependencies
|
||||||
run: |
|
run: |
|
||||||
haxelib install hxcpp 4.2.1 --quiet
|
|
||||||
haxelib install format --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: Enable HXCPP compile cache (Windows)
|
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $Env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Enable HXCPP compile cache (macOS/Linux)
|
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: lime-haxelib
|
name: lime-haxelib
|
||||||
|
|||||||
Reference in New Issue
Block a user