mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
Really try to fix builds
This commit is contained in:
parent
51be963ac8
commit
be14bbe80c
4
.github/workflows/build_freebsd.yml
vendored
4
.github/workflows/build_freebsd.yml
vendored
@ -25,8 +25,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Retrieve OpenGL and X11 dev files (64 bit)
|
- name: Retrieve OpenGL and X11 dev files (64 bit)
|
||||||
run: |
|
run: |
|
||||||
mkdir src/freebsd64
|
mkdir freebsd64
|
||||||
cd src/freebsd64
|
cd freebsd64
|
||||||
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/freebsd64.zip
|
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/freebsd64.zip
|
||||||
unzip freebsd64.zip
|
unzip freebsd64.zip
|
||||||
|
|
||||||
|
22
.github/workflows/build_rpi.yml
vendored
22
.github/workflows/build_rpi.yml
vendored
@ -25,21 +25,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Retrieve OpenGL and X11 dev files
|
- name: Retrieve OpenGL and X11 dev files
|
||||||
run: |
|
run: |
|
||||||
mkdir src/rpi
|
mkdir rpi
|
||||||
cd src/rpi
|
cd rpi
|
||||||
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/rpi32.zip
|
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/rpi32.zip
|
||||||
unzip rpi32.zip
|
unzip rpi32.zip
|
||||||
|
|
||||||
- name: Compile RPI 32 bit build
|
- name: Compile RPI 32 bit build
|
||||||
id: compile
|
id: compile
|
||||||
env:
|
env:
|
||||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -Werror"
|
LIBS: "-lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt"
|
||||||
|
SRCS: "src/*.c third_party/bearssl/src/*.c"
|
||||||
|
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -Werror -Ithird_party/bearssl/inc"
|
||||||
RPI32_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_RPI -I rpi/include -L rpi/lib -Wl,--unresolved-symbols=ignore-in-shared-libs"
|
RPI32_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_RPI -I rpi/include -L rpi/lib -Wl,--unresolved-symbols=ignore-in-shared-libs"
|
||||||
run: |
|
run: |
|
||||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\"
|
LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\"
|
||||||
|
|
||||||
cd src
|
$CC ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.RPI32_FLAGS }} $LATEST_FLAG -o cc-rpi32 ${{ env.LIBS }}
|
||||||
$CC *.c ${{ env.COMMON_FLAGS }} ${{ env.RPI32_FLAGS }} $LATEST_FLAG -o cc-rpi32 -lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt
|
|
||||||
|
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
- uses: ./.github/actions/notify_failure
|
||||||
@ -76,21 +77,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Retrieve OpenGL and X11 dev files
|
- name: Retrieve OpenGL and X11 dev files
|
||||||
run: |
|
run: |
|
||||||
mkdir src/rpi
|
mkdir rpi
|
||||||
cd src/rpi
|
cd rpi
|
||||||
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/rpi64.zip
|
wget https://github.com/ClassiCube/rpi-compiling-stuff/raw/main/rpi64.zip
|
||||||
unzip rpi64.zip
|
unzip rpi64.zip
|
||||||
|
|
||||||
- name: Compile RPI 64 bit build
|
- name: Compile RPI 64 bit build
|
||||||
id: compile
|
id: compile
|
||||||
env:
|
env:
|
||||||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -Werror"
|
LIBS: "-lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt"
|
||||||
|
SRCS: "src/*.c third_party/bearssl/src/*.c"
|
||||||
|
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -Werror -Ithird_party/bearssl/inc"
|
||||||
RPI64_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_RPI -I rpi/include -L rpi/lib -Wl,--unresolved-symbols=ignore-in-shared-libs"
|
RPI64_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_RPI -I rpi/include -L rpi/lib -Wl,--unresolved-symbols=ignore-in-shared-libs"
|
||||||
run: |
|
run: |
|
||||||
LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\"
|
LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\"
|
||||||
|
|
||||||
cd src
|
$CC ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.RPI64_FLAGS }} $LATEST_FLAG -o cc-rpi64 ${{ env.LIBS }}
|
||||||
$CC *.c ${{ env.COMMON_FLAGS }} ${{ env.RPI64_FLAGS }} $LATEST_FLAG -o cc-rpi64 -lGLESv2 -lEGL -lX11 -lXi -lm -lpthread -ldl -lrt
|
|
||||||
|
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
- uses: ./.github/actions/notify_failure
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
#include "Certs.h"
|
#include "Certs.h"
|
||||||
|
|
||||||
#ifndef CC_CRT_BACKEND
|
#ifndef CC_CRT_BACKEND
|
||||||
|
#include "Errors.h"
|
||||||
|
|
||||||
void CertsBackend_Init(void) { }
|
void CertsBackend_Init(void) { }
|
||||||
|
|
||||||
void Certs_BeginChain(struct X509CertContext* ctx) { }
|
void Certs_BeginChain(struct X509CertContext* ctx) { }
|
||||||
|
|
||||||
void Certs_FreeChain( struct X509CertContext* ctx) { }
|
void Certs_FreeChain( struct X509CertContext* ctx) { }
|
||||||
|
|
||||||
int Certs_VerifyChain(struct X509CertContext* ctx) { return ERR_NOT_SUPPORTED; }
|
int Certs_VerifyChain(struct X509CertContext* ctx) { return ERR_NOT_SUPPORTED; }
|
||||||
|
|
||||||
void Certs_BeginCert( struct X509CertContext* ctx, int size) { }
|
void Certs_BeginCert( struct X509CertContext* ctx, int size) { }
|
||||||
|
|
||||||
void Certs_AppendCert(struct X509CertContext* ctx, const void* data, int len) { }
|
void Certs_AppendCert(struct X509CertContext* ctx, const void* data, int len) { }
|
||||||
|
|
||||||
void Certs_FinishCert(struct X509CertContext* ctx) { }
|
void Certs_FinishCert(struct X509CertContext* ctx) { }
|
||||||
#else
|
#else
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user