Skip to content

Commit

Permalink
Added CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Oct 25, 2024
1 parent a3c663b commit d800537
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 9,651 deletions.
158 changes: 158 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: CI

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

on:
push:
pull_request:

jobs:
msvc:
strategy:
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' },
]
name: msvc-${{ matrix.config }}-${{ matrix.platform }}
runs-on: windows-2019
steps:
- name: Checkout bx
uses: actions/checkout@v3
with:
repository: bkaradzic/bx
path: bx
- name: Prepare
uses: microsoft/[email protected]
- name: Build
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 }}
- name: Check
shell: cmd
run: |
cd bx
dir /s ".build\${{ matrix.bindir }}\bin"
".build\${{ matrix.bindir }}\bin\bx.test${{ matrix.config }}.exe"
mingw:
strategy:
fail-fast: true
matrix:
include: [
{ msystem: MINGW64, project: 'mingw-gcc', bindir: 'win64_mingw-gcc' },
{ msystem: CLANG64, project: 'mingw-clang', bindir: 'win64_mingw-clang' },
]
name: mingw-${{ matrix.msystem }}
runs-on: windows-latest
steps:
- name: Checkout bx
uses: actions/checkout@v3
with:
repository: bkaradzic/bx
path: bx
- name: Prepare
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
install: make
pacboy: cc:p
- name: Build
shell: msys2 {0}
run: |
cd bx
make ${{ matrix.project }}-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
linux:
strategy:
fail-fast: true
matrix:
include: [
{ config: debug, binsuffix: Debug },
{ config: release, binsuffix: Release },
]
name: linux-${{ matrix.config }}64
runs-on: ubuntu-22.04
steps:
- name: Checkout bx
uses: actions/checkout@v3
with:
repository: bkaradzic/bx
path: bx
- name: Build
run: |
sudo apt install libgl-dev
cd bx
make -j$(nproc) linux-${{ matrix.config }}64
- name: Check
run: |
cd bx
ls -lash ".build/linux64_gcc/bin"
".build/linux64_gcc/bin/bx.test${{ matrix.binsuffix}}"
osx:
strategy:
fail-fast: true
matrix:
include: [
{ config: debug, binsuffix: Debug },
{ config: release, binsuffix: Release },
]
name: osx-x64-${{ matrix.config }}
runs-on: macos-latest
steps:
- name: Checkout bx
uses: actions/checkout@v3
with:
repository: bkaradzic/bx
path: bx
- name: Build
run: |
cd bx
make -j$(sysctl -n hw.physicalcpu) osx-x64-${{ matrix.config }}
- 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"
238 changes: 0 additions & 238 deletions makefile

This file was deleted.

Loading

0 comments on commit d800537

Please sign in to comment.