mirror of https://github.com/Nonannet/copapy.git
ci: logging extended and docker image switched
This commit is contained in:
parent
24e19dca35
commit
e0c4bd5280
|
|
@ -132,14 +132,14 @@ jobs:
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
- name: Use ARM64 container
|
- name: Use ARM64 container
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $PWD:/app -w /app --platform linux/arm64 ubuntu:22.04 \
|
docker run --rm -v $PWD:/app -w /app --platform linux/arm64 python:3.11-slim \
|
||||||
bash -lc "apt-get update && \
|
bash -lc "apt-get update && \
|
||||||
apt-get install -y build-essential python3 python3-pip python3-dev && \
|
apt-get install -y build-essential && \
|
||||||
python3 -m pip install --upgrade pip setuptools wheel && \
|
pip install setuptools wheel pytest && \
|
||||||
python3 -m pip install .[dev] && \
|
pip install . && \
|
||||||
mkdir -p bin && \
|
mkdir -p bin && \
|
||||||
gcc -O3 -DENABLE_BASIC_LOGGING -o bin/coparun src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c && \
|
gcc -O3 -DENABLE_LOGGING -o bin/coparun src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c && \
|
||||||
python3 -m pytest"
|
pytest"
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
needs: [build_stencils]
|
needs: [build_stencils]
|
||||||
|
|
|
||||||
|
|
@ -5,17 +5,6 @@
|
||||||
#include "runmem.h"
|
#include "runmem.h"
|
||||||
#include "mem_man.h"
|
#include "mem_man.h"
|
||||||
|
|
||||||
#ifdef ENABLE_LOGGING
|
|
||||||
#define LOG(...) printf(__VA_ARGS__)
|
|
||||||
#define BLOG(...) printf(__VA_ARGS__)
|
|
||||||
#elif ENABLE_BASIC_LOGGING
|
|
||||||
#define LOG(...)
|
|
||||||
#define BLOG(...) printf(__VA_ARGS__)
|
|
||||||
#else
|
|
||||||
#define LOG(...)
|
|
||||||
#define BLOG(...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Globals declared extern in runmem.h */
|
/* Globals declared extern in runmem.h */
|
||||||
uint8_t *data_memory = NULL;
|
uint8_t *data_memory = NULL;
|
||||||
uint32_t data_memory_len = 0;
|
uint32_t data_memory_len = 0;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,17 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_LOGGING
|
||||||
|
#define LOG(...) printf(__VA_ARGS__)
|
||||||
|
#define BLOG(...) printf(__VA_ARGS__)
|
||||||
|
#elif ENABLE_BASIC_LOGGING
|
||||||
|
#define LOG(...)
|
||||||
|
#define BLOG(...) printf(__VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define LOG(...)
|
||||||
|
#define BLOG(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Command opcodes used by the parser */
|
/* Command opcodes used by the parser */
|
||||||
#define ALLOCATE_DATA 1
|
#define ALLOCATE_DATA 1
|
||||||
#define COPY_DATA 2
|
#define COPY_DATA 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue