2024-10-19 13:06:27 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: docker
|
2024-10-19 17:41:22 +02:00
|
|
|
container: debian:bookworm
|
2024-10-19 13:06:27 +02:00
|
|
|
steps:
|
2024-10-19 17:28:32 +02:00
|
|
|
- run: dpkg --add-architecture amd64 && apt update
|
2024-10-19 13:35:46 +02:00
|
|
|
- name: Install prerequisites
|
2024-10-19 13:47:06 +02:00
|
|
|
run: apt install -y git ca-certificates
|
2024-10-19 13:06:27 +02:00
|
|
|
- name: Install toolchain
|
2024-10-19 17:34:24 +02:00
|
|
|
run: apt install -y gcc gcc-x86-64-linux-gnu:arm64 make:arm64
|
2024-10-19 17:28:32 +02:00
|
|
|
- name: Install dependencies (arm64 & amd64)
|
|
|
|
run: apt install -y libelf-dev:arm64 libelf-dev:amd64
|
2024-10-19 13:06:27 +02:00
|
|
|
- name: Clone repository
|
2024-10-19 13:51:46 +02:00
|
|
|
run: git clone https://git.m724.eu/Minecon724/criscv.git .
|
2024-10-19 17:23:23 +02:00
|
|
|
- run: CC=x86_64-linux-gnu-gcc make libinfo
|
2024-10-19 13:06:27 +02:00
|
|
|
- name: Package for x86_64
|
2024-10-19 16:24:47 +02:00
|
|
|
run: LD_LIBRARY_PATH=/usr/include CC=x86_64-linux-gnu-gcc PROGRAM_NAME=crisc-x86_64 make
|
2024-10-19 13:06:27 +02:00
|
|
|
- name: Package for aarch64
|
2024-10-19 16:24:47 +02:00
|
|
|
run: LD_LIBRARY_PATH=/usr/include CC=aarch64-linux-gnu-gcc PROGRAM_NAME=crisc-aarch64 make
|
2024-10-19 13:06:27 +02:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: https://github.com/actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
path: build/criscv-*
|