mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-06-08 02:43:48 +00:00
CI: expand coverage (#119)
This commit is contained in:
committed by
GitHub
parent
848cb5f404
commit
0477714903
72
.github/workflows/main.yml
vendored
72
.github/workflows/main.yml
vendored
@@ -14,26 +14,26 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
include: [
|
include: [
|
||||||
{ config: Debug, platform: Win32, bindir: 'win32_vs2022' },
|
{ config: Debug, platform: Win32, bindir: 'win32_vs2022' },
|
||||||
{ config: Debug, platform: x64, bindir: 'win64_vs2022' },
|
{ config: Debug, platform: x64, bindir: 'win64_vs2022' },
|
||||||
{ config: Release, platform: Win32, bindir: 'win32_vs2022' },
|
{ config: Release, platform: Win32, bindir: 'win32_vs2022' },
|
||||||
{ config: Release, platform: x64, bindir: 'win64_vs2022' },
|
{ config: Release, platform: x64, bindir: 'win64_vs2022' },
|
||||||
]
|
]
|
||||||
name: msvc-${{ matrix.config }}-${{ matrix.platform }}
|
name: msvc-${{ matrix.config }}-${{ matrix.platform }}
|
||||||
runs-on: windows-2022
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bx
|
repository: bkaradzic/bx
|
||||||
path: bx
|
path: bx
|
||||||
- name: Checkout bimg
|
- name: Checkout bimg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bimg
|
repository: bkaradzic/bimg
|
||||||
path: bimg
|
path: bimg
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -51,19 +51,19 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
include: [
|
include: [
|
||||||
{ msystem: MINGW64, project: 'mingw-gcc', bindir: 'win64_mingw-gcc' },
|
{ msystem: MINGW64, project: 'mingw-gcc', bindir: 'win64_mingw-gcc' },
|
||||||
# { msystem: CLANG64, project: 'mingw-clang', bindir: 'win64_mingw-clang' },
|
{ msystem: CLANG64, project: 'mingw-clang', bindir: 'win64_mingw-clang' },
|
||||||
]
|
]
|
||||||
name: mingw-${{ matrix.msystem }}
|
name: mingw-${{ matrix.msystem }}
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bx
|
repository: bkaradzic/bx
|
||||||
path: bx
|
path: bx
|
||||||
- name: Checkout bimg
|
- name: Checkout bimg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bimg
|
repository: bkaradzic/bimg
|
||||||
path: bimg
|
path: bimg
|
||||||
@@ -90,19 +90,21 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
include: [
|
include: [
|
||||||
{ config: debug, binsuffix: Debug },
|
{ compiler: gcc, config: debug, binsuffix: Debug, bindir: linux64_gcc },
|
||||||
{ config: release, binsuffix: Release },
|
{ compiler: gcc, config: release, binsuffix: Release, bindir: linux64_gcc },
|
||||||
|
{ compiler: clang, config: debug, binsuffix: Debug, bindir: linux64_clang },
|
||||||
|
{ compiler: clang, config: release, binsuffix: Release, bindir: linux64_clang },
|
||||||
]
|
]
|
||||||
name: linux-gcc-${{ matrix.config }}64
|
name: linux-${{ matrix.compiler }}-${{ matrix.config }}64
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bx
|
repository: bkaradzic/bx
|
||||||
path: bx
|
path: bx
|
||||||
- name: Checkout bimg
|
- name: Checkout bimg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bimg
|
repository: bkaradzic/bimg
|
||||||
path: bimg
|
path: bimg
|
||||||
@@ -110,30 +112,30 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt install libgl-dev
|
sudo apt install libgl-dev
|
||||||
cd bimg
|
cd bimg
|
||||||
make -j$(nproc) linux-gcc-${{ matrix.config }}64
|
make -j$(nproc) linux-${{ matrix.compiler }}-${{ matrix.config }}64
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
cd bimg
|
cd bimg
|
||||||
ls -lash ".build/linux64_gcc/bin"
|
ls -lash ".build/${{ matrix.bindir }}/bin"
|
||||||
".build/linux64_gcc/bin/texturec${{ matrix.binsuffix}}" --version
|
".build/${{ matrix.bindir }}/bin/texturec${{ matrix.binsuffix }}" --version
|
||||||
osx:
|
osx:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
include: [
|
include: [
|
||||||
{ config: debug, binsuffix: Debug },
|
{ config: debug, binsuffix: Debug },
|
||||||
{ config: release, binsuffix: Release },
|
{ config: release, binsuffix: Release },
|
||||||
]
|
]
|
||||||
name: osx-arm64-${{ matrix.config }}
|
name: osx-arm64-${{ matrix.config }}
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bx
|
repository: bkaradzic/bx
|
||||||
path: bx
|
path: bx
|
||||||
- name: Checkout bimg
|
- name: Checkout bimg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bimg
|
repository: bkaradzic/bimg
|
||||||
path: bimg
|
path: bimg
|
||||||
@@ -145,38 +147,40 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd bimg
|
cd bimg
|
||||||
ls -lash ".build/osx-arm64/bin"
|
ls -lash ".build/osx-arm64/bin"
|
||||||
".build/osx-arm64/bin/texturec${{ matrix.binsuffix}}" --version
|
".build/osx-arm64/bin/texturec${{ matrix.binsuffix }}" --version
|
||||||
android:
|
android:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
include: [
|
include: [
|
||||||
{ platform: arm64 },
|
{ platform: arm64 },
|
||||||
]
|
]
|
||||||
name: android-${{ matrix.platform }}
|
name: android-${{ matrix.platform }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: nttld/setup-ndk@v1
|
|
||||||
id: setup-ndk
|
|
||||||
with:
|
|
||||||
ndk-version: r25b
|
|
||||||
add-to-path: false
|
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bx
|
repository: bkaradzic/bx
|
||||||
path: bx
|
path: bx
|
||||||
- name: Checkout bimg
|
- name: Checkout bimg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: bkaradzic/bimg
|
repository: bkaradzic/bimg
|
||||||
path: bimg
|
path: bimg
|
||||||
|
- uses: nttld/setup-ndk@v1
|
||||||
|
id: setup-ndk
|
||||||
|
with:
|
||||||
|
ndk-version: r27c
|
||||||
|
add-to-path: false
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
|
||||||
cd bimg
|
|
||||||
make -j$(sysctl -n hw.physicalcpu) android-${{ matrix.platform }}
|
|
||||||
env:
|
env:
|
||||||
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
|
ANDROID_NDK_ARM: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
|
ANDROID_NDK_ARM64: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
|
run: |
|
||||||
|
cd bimg
|
||||||
|
make -j$(nproc) android-${{ matrix.platform }}
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
cd bimg
|
cd bimg
|
||||||
|
|||||||
Reference in New Issue
Block a user