criscv/.forgejo/workflows/build.yml
Minecon724 5b0fad904e
Some checks failed
/ deploy (push) Failing after 1m19s
right
2024-10-19 17:41:22 +02:00

24 lines
No EOL
990 B
YAML

on: [push]
jobs:
deploy:
runs-on: docker
container: debian:bookworm
steps:
- run: dpkg --add-architecture amd64 && apt update
- name: Install prerequisites
run: apt install -y git ca-certificates
- name: Install toolchain
run: apt install -y gcc gcc-x86-64-linux-gnu:arm64 make:arm64
- name: Install dependencies (arm64 & amd64)
run: apt install -y libelf-dev:arm64 libelf-dev:amd64
- name: Clone repository
run: git clone https://git.m724.eu/Minecon724/criscv.git .
- run: CC=x86_64-linux-gnu-gcc make libinfo
- name: Package for x86_64
run: LD_LIBRARY_PATH=/usr/include CC=x86_64-linux-gnu-gcc PROGRAM_NAME=crisc-x86_64 make
- name: Package for aarch64
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:
path: build/criscv-*