criscv/.forgejo/workflows/build.yml

23 lines
867 B
YAML
Raw Normal View History

2024-10-19 13:06:27 +02:00
on: [push]
jobs:
deploy:
runs-on: docker
2024-10-19 13:31:48 +02:00
container: debian:sid-slim
2024-10-19 13:06:27 +02:00
steps:
- run: apt update
2024-10-19 13:35:46 +02:00
- name: Install prerequisites
2024-10-19 13:40:51 +02:00
run: apt install --no-install-recommends -y git
2024-10-19 13:06:27 +02:00
- name: Install toolchain
2024-10-19 13:35:46 +02:00
run: apt install --no-install-recommends -y gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu make
2024-10-19 13:06:27 +02:00
- name: Install dependencies
2024-10-19 13:35:46 +02:00
run: apt install --no-install-recommends -y libelf-dev
2024-10-19 13:06:27 +02:00
- name: Clone repository
2024-10-19 13:40:51 +02:00
run: git clone git@git.m724.eu:Minecon724/crisc.git .
2024-10-19 13:06:27 +02:00
- name: Package for x86_64
run: 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
- name: Upload artifact
uses: https://github.com/actions/upload-artifact@v4
with:
path: build/criscv-*