mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
CI fix.
This commit is contained in:
committed by
Branimir Karadžić
parent
d800537433
commit
cc5a21ef3d
64
.github/workflows/main.yml
vendored
64
.github/workflows/main.yml
vendored
@@ -14,13 +14,11 @@ jobs:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include: [
|
||||
{ config: Debug, platform: Win32, bindir: 'win32_vs2019' },
|
||||
{ config: Debug, platform: x64, bindir: 'win64_vs2019' },
|
||||
{ config: Release, platform: Win32, bindir: 'win32_vs2019' },
|
||||
{ config: Release, platform: x64, bindir: 'win64_vs2019' },
|
||||
{ config: Debug, platform: x64, bindir: 'win64_vs2022' },
|
||||
{ config: Release, platform: x64, bindir: 'win64_vs2022' },
|
||||
]
|
||||
name: msvc-${{ matrix.config }}-${{ matrix.platform }}
|
||||
runs-on: windows-2019
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout bx
|
||||
uses: actions/checkout@v3
|
||||
@@ -33,14 +31,13 @@ jobs:
|
||||
shell: cmd
|
||||
run: |
|
||||
cd bx
|
||||
..\bx\tools\bin\windows\genie.exe vs2019
|
||||
msbuild ".build/projects/vs2019/bx.sln" /m /v:minimal /p:Configuration=${{ matrix.config }} /p:Platform=${{ matrix.platform }}
|
||||
tools\bin\windows\genie.exe vs2022
|
||||
msbuild ".build/projects/vs2022/bx.sln" /m /v:minimal /p:Configuration=${{ matrix.config }} /p:Platform=${{ matrix.platform }}
|
||||
- name: Check
|
||||
shell: cmd
|
||||
run: |
|
||||
cd bx
|
||||
dir /s ".build\${{ matrix.bindir }}\bin"
|
||||
".build\${{ matrix.bindir }}\bin\bx.test${{ matrix.config }}.exe"
|
||||
".build\${{ matrix.bindir }}\bin\bx.test${{ matrix.config }}.exe" -d yes
|
||||
mingw:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
@@ -68,13 +65,13 @@ jobs:
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
cd bx
|
||||
make ${{ matrix.project }}-release64 -j$(nproc) AR=ar CC=cc CXX=c++ MINGW=$MINGW_PREFIX
|
||||
tools/bin/windows/genie.exe --gcc=${{ matrix.project }} gmake
|
||||
make -R -C .build/projects/gmake-${{ matrix.project }} config=release64 -j$(nproc) AR=ar CC=cc CXX=c++ MINGW=$MINGW_PREFIX
|
||||
- name: Check
|
||||
shell: cmd
|
||||
run: |
|
||||
cd bx
|
||||
dir /s ".build\${{ matrix.bindir }}\bin"
|
||||
".build\${{ matrix.bindir }}\bin\bx.testRelease.exe" --version
|
||||
".build\${{ matrix.bindir }}\bin\bx.testRelease.exe" -d yes
|
||||
linux:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
@@ -93,14 +90,13 @@ jobs:
|
||||
path: bx
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt install libgl-dev
|
||||
cd bx
|
||||
make -j$(nproc) linux-${{ matrix.config }}64
|
||||
tools/bin/linux/genie --gcc=linux-gcc gmake
|
||||
make -R -C .build/projects/gmake-linux config=${{ matrix.config }}64 -j$(nproc)
|
||||
- name: Check
|
||||
run: |
|
||||
cd bx
|
||||
ls -lash ".build/linux64_gcc/bin"
|
||||
".build/linux64_gcc/bin/bx.test${{ matrix.binsuffix}}"
|
||||
".build/linux64_gcc/bin/bx.test${{ matrix.binsuffix}}" -d yes
|
||||
osx:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
@@ -120,39 +116,9 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
cd bx
|
||||
make -j$(sysctl -n hw.physicalcpu) osx-x64-${{ matrix.config }}
|
||||
tools/bin/darwin/genie --gcc=osx-x64 gmake
|
||||
make -C .build/projects/gmake-osx-x64 config=${{ matrix.config }} -j$(sysctl -n hw.physicalcpu)
|
||||
- name: Check
|
||||
run: |
|
||||
cd bx
|
||||
ls -lash ".build/osx-x64/bin"
|
||||
".build/osx-x64/bin/bx.test${{ matrix.binsuffix}}"
|
||||
android:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include: [
|
||||
{ platform: arm64 },
|
||||
]
|
||||
name: android-${{ matrix.platform }}
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: nttld/setup-ndk@v1
|
||||
id: setup-ndk
|
||||
with:
|
||||
ndk-version: r25b
|
||||
add-to-path: false
|
||||
- name: Checkout bx
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: bkaradzic/bx
|
||||
path: bx
|
||||
- name: Build
|
||||
run: |
|
||||
cd bx
|
||||
make -j$(sysctl -n hw.physicalcpu) android-${{ matrix.platform }}
|
||||
env:
|
||||
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||
- name: Check
|
||||
run: |
|
||||
cd bx
|
||||
ls -lash ".build/android-${{ matrix.platform }}/bin"
|
||||
".build/osx-x64/bin/bx.test${{ matrix.binsuffix}}" -d yes
|
||||
|
||||
Reference in New Issue
Block a user