Skip to content

Commit

Permalink
Improve github workflow yml config
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jan 4, 2025
1 parent 8a38d3f commit 5b144b0
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
.\tools\cmdline\axmol -p win32 -a x64
.\tools\cmdline\axmol run -p win32 -a x64 -xb '--target,unit-tests'
run: .\tools\cmdline\axmol -p win32 -a x64 ; .\tools\cmdline\axmol run -p win32 -a x64 -xb '--target,unit-tests'
- uses: actions/upload-artifact@v4
with:
name: windows_x64
Expand Down Expand Up @@ -78,10 +76,7 @@ jobs:
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p linux -a x64
./tools/cmdline/axmol -p linux -a x64 -xb '--target,lua-tests'
./tools/cmdline/axmol run -p linux -a x64 -xb '--target,unit-tests' -wait
run: ./tools/cmdline/axmol -p linux -a x64 ; ./tools/cmdline/axmol -p linux -a x64 -xb '--target,lua-tests' ; ./tools/cmdline/axmol run -p linux -a x64 -xb '--target,unit-tests' -wait
osx-arm64:
runs-on: macos-latest
steps:
Expand All @@ -90,9 +85,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p osx
./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
run: ./tools/cmdline/axmol -p osx ; ./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
osx-x64:
runs-on: macos-13
steps:
Expand All @@ -101,9 +94,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p osx
./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
run: ./tools/cmdline/axmol -p osx ; ./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
android:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -154,10 +145,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,fairygui-tests'
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,lua-tests'
run: ./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 ; ./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,fairygui-tests' ; ./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,lua-tests'
- uses: actions/upload-artifact@v4
with:
name: wasm
Expand Down

0 comments on commit 5b144b0

Please sign in to comment.