From ec623de1fa80ce9f0e62ed8647135b74ac46b438 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Fri, 3 Jul 2020 14:56:28 +0200 Subject: [PATCH] Add build script for SourceHut --- .build.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..8bfe734 --- /dev/null +++ b/.build.yml @@ -0,0 +1,48 @@ +image: fedora/31 +packages: + - wget + - csh + - git + - gcc-c++ + - bison + - flex + - tcl-devel + - readline-devel + - gawk + - libffi-devel + - graphviz + - pkg-config + - python3 + - python3-devel + - boost-devel + - boost-python3-devel + - zlib-devel + - cmake + - eigen3-devel + - automake + - autoconf + - gperf + - libyaml-devel +sources: + - https://git.sr.ht/~macbook/gram +tasks: + - install-diamond: | + wget http://files.latticesemi.com/Diamond/3.11/diamond_3_11-base_x64-396-4-x86_64-linux.rpm -P /tmp + wget http://files.latticesemi.com/Diamond/3.11.2/diamond_3_11-sp2_x64-446-3-x86_64-linux.rpm -P /tmp + sudo rpm -ivh /tmp/*.rpm + - install-python-packages: | + pip install yowasp-yosys git+git://github.com/nmigen/nmigen.git git+git://github.com/nmigen/nmigen-boards.git git+git://github.com/nmigen/nmigen-stdio.git git+git://github.com/nmigen/nmigen-soc.git git+git://github.com/lambdaconcept/lambdasoc.git --user + - install-icarus-verilog: | + cd /tmp + git clone git://github.com/steveicarus/iverilog.git + cd iverilog + autoconf + ./configure + make -j$(nproc) + sudo make install + - install-gram: | + cd ~/gram + python setup.py install --user + - run-tests: | + cd ~/gram + contrib/test \ No newline at end of file -- 2.30.2