From 66f304fc816c8db549cd9f051eaa46752c17c6d8 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 19 Oct 2024 16:24:47 +0200 Subject: [PATCH] fix workflow once and for all --- .forgejo/workflows/build.yml | 6 +++--- Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index eb07d4c..5968711 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -10,13 +10,13 @@ jobs: - name: Install toolchain run: apt install -y gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu make - name: Install dependencies - run: apt install -y libelf1 + run: apt install -y libelf-dev - name: Clone repository run: git clone https://git.m724.eu/Minecon724/criscv.git . - name: Package for x86_64 - run: CC=x86_64-linux-gnu-gcc PROGRAM_NAME=crisc-x86_64 make + run: LD_LIBRARY_PATH=/usr/include CC=x86_64-linux-gnu-gcc PROGRAM_NAME=crisc-x86_64 make - name: Package for aarch64 - run: CC=aarch64-linux-gnu-gcc PROGRAM_NAME=crisc-aarch64 make + run: LD_LIBRARY_PATH=/usr/include CC=aarch64-linux-gnu-gcc PROGRAM_NAME=crisc-aarch64 make - name: Upload artifact uses: https://github.com/actions/upload-artifact@v4 with: diff --git a/Makefile b/Makefile index 9d78cfe..13c758b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Compiler to use CC ?= gcc -CFLAGS = -Wall -Wextra -std=gnu23 -I include -I /usr/include +CFLAGS = -Wall -Wextra -std=gnu23 -I include LDFLAGS = -lelf # Directory for build outputs