mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Windows ARM builds for github actions
This commit is contained in:
parent
c70cc1932c
commit
d3f9c5ab84
3 changed files with 78 additions and 2 deletions
2
.github/workflows/build_rpi.yml
vendored
2
.github/workflows/build_rpi.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
|||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
|
||||
RPI32_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_ICON -DCC_BUILD_RPI -I rpi/include -L rpi/lib -Wl,--unresolved-symbols=ignore-in-shared-libs"
|
||||
run: |
|
||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\"
|
||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\"
|
||||
|
||||
cd src
|
||||
$CC *.c ${{ env.COMMON_FLAGS }} ${{ env.RPI32_FLAGS }} $LATEST_FLAG -o cc-rpi32 -lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt
|
||||
|
|
76
.github/workflows/build_win-arm.yml
vendored
Normal file
76
.github/workflows/build_win-arm.yml
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
name: Build latest (Windows ARM32/64)
|
||||
on: [push]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-windows-arm
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
#============================================
|
||||
# ============== ARM32 WINDOWS ==============
|
||||
# ===========================================
|
||||
build-32:
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: dockcross/windows-armv7
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile ARM32 Windows builds
|
||||
shell: bash
|
||||
id: compile
|
||||
env:
|
||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
|
||||
WIN32_FLAGS: "-mwindows -nostartfiles -Wl,-emain_real -DCC_NOMAIN"
|
||||
run: |
|
||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\"
|
||||
|
||||
cd src
|
||||
armv7-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN32_FLAGS }} -o cc-arm32-d3d11.exe $LATEST_FLAG -DCC_BUILD_MANUAL -DCC_BUILD_WIN -DCC_BUILD_D3D11 -DCC_BUILD_WINGUI -DCC_BUILD_WGL -DCC_BUILD_WINMM -DCC_BUILD_HTTPCLIENT -DCC_BUILD_SCHANNEL -lwinmm -limagehlp
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 32 bit Windows build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'src/cc-arm32-d3d11.exe'
|
||||
DEST_NAME: 'ClassiCube-arm32-Direct3D11.exe'
|
||||
#============================================
|
||||
# ============== ARM64 WINDOWS ==============
|
||||
# ===========================================
|
||||
build-64:
|
||||
if: github.ref_name == github.event.repository.default_branch
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: dockcross/windows-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Compile ARM64 Windows builds
|
||||
shell: bash
|
||||
id: compile
|
||||
env:
|
||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
|
||||
WIN64_FLAGS: "-mwindows -nostartfiles -Wl,-emain_real -DCC_NOMAIN"
|
||||
run: |
|
||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\"
|
||||
|
||||
cd src
|
||||
aarch64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-arm64-d3d11.exe $LATEST_FLAG -DCC_BUILD_MANUAL -DCC_BUILD_WIN -DCC_BUILD_D3D11 -DCC_BUILD_WINGUI -DCC_BUILD_WGL -DCC_BUILD_WINMM -DCC_BUILD_HTTPCLIENT -DCC_BUILD_SCHANNEL -lwinmm -limagehlp
|
||||
|
||||
|
||||
- uses: ./.github/actions/notify_failure
|
||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||
with:
|
||||
NOTIFY_MESSAGE: 'Failed to compile 64 bit Windows build'
|
||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||
|
||||
- uses: ./.github/actions/upload_build
|
||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||
with:
|
||||
SOURCE_FILE: 'src/cc-arm64-d3d11.exe'
|
||||
DEST_NAME: 'ClassiCube-arm64-Direct3D11.exe'
|
|
@ -506,7 +506,7 @@ static void PrintRegisters(cc_string* str, void* ctx) {
|
|||
#define REG_GET_PC() &r->Pc
|
||||
Dump_ARM32()
|
||||
#elif defined _M_ARM64
|
||||
#define REG_GNUM(num) &r->x[num]
|
||||
#define REG_GNUM(num) &r->X[num]
|
||||
#define REG_GET_FP() &r->Fp
|
||||
#define REG_GET_LR() &r->Lr
|
||||
#define REG_GET_SP() &r->Sp
|
||||
|
|
Loading…
Reference in a new issue